Case · DiggingBeagle record

DBHub read-only scanner disagreed with database SQL escaping

The maintainer patch addresses a disagreement between read-only statement inspection and database interpretation of escaped strings. It applies stricter validation across modeled MySQL, MariaDB and PostgreSQL modes and constrains explain requests.

Published by DiggingBeagle:

Public disclosure: Nov 12, 2026

Scope

DBHub MCP SQL execution and analysis, with database-dependent string interpretation. Version 1.7.0 lists the corrective change.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
not established
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The cited disclosure supports the bounded finding. No independently measured comparable realized-harm magnitude is established.

Assessed Nov 24, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Relevant input or trust surface

    DBHub MCP SQL execution and analysis, with database-dependent string interpretation. Version 1.7.0 lists the corrective change.

    Boundary: Input or observation to trusted component

  2. 02

    Observed or reported consequence

    The maintainer patch addresses a disagreement between read-only statement inspection and database interpretation of escaped strings. It applies stricter validation across modeled MySQL, MariaDB and PostgreSQL modes and constrains explain requests.

    Boundary: Application query classification does not replace database-enforced read-only credentials.

Timeline

  1. Nov 12, 2026
  2. Nov 12, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-2026-NOV24-DBHUB-DIALECT-READONLYThe maintainer patch addresses a disagreement between read-only statement inspection and database interpretation of escaped strings. It applies stricter validation across modeled MySQL, MariaDB and PostgreSQL modes and constrains explain requests.supported

Basis: reported finding

Link to claim
CLM-DEEP280-NOV24-DBHUB-DIALECT-READONLYPR 505 was merged November 12. Its MySQL/MariaDB scanner evaluates the relevant default and alternate string-escaping/quoting modes, while PostgreSQL escape strings receive separate handling. It rejects an explain request unless each modeled interpretation permits the statement. Release 1.7.0 includes the correction.supported

Basis: reported finding

Link to claim

Implications

Application query classification does not replace database-enforced read-only credentials.

Controls and mitigations

  • Use independently read-only database roles, upgrade and test every supported SQL mode.
  • Use a database principal without write privileges for read-only tools, and validate the scanner against actual session modes and single-statement restrictions.

Unknowns and contradictions

  • Neither the patch nor release demonstrates a real unauthorized database write.
  • No independent database matrix was run here; the PR and tag establish the intended correction, not its performance against every backend.

Sources and citation

Material revision history

  1. Nov 24, 2026 · Published version · first publication · revision 282