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. Application query classification does not replace database-enforced read-only credentials. Neither the patch…
Inspect the ClaimsCase · 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
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.
Evidence basis: CLM-2026-NOV24-DBHUB-DIALECT-READONLY · DBHub PR #505: SQL dialect read-only validation · DBHub v1.7.0 release
At a glance
Application query classification does not replace database-enforced read-only credentials.
Read the implicationsNeither 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.
Limits and uncertaintyFull account
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.
Application query classification does not replace database-enforced read-only credentials. Neither the patch nor release demonstrates a real unauthorized database write.
PR 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. (Evidence 1; Evidence 2).
A read-only policy implemented by a lexical scanner can diverge from a live database parser. Choosing the strictest interpretation across plausible modes reduces that mismatch, but the database principal remains the authoritative barrier to writes. The release addresses the modeled parsing modes, not every possible SQL dialect extension.
For a database integration, an acceptance check should include both a scanner-level decision and a query run under an intentionally read-only database principal in an isolated fixture. A scanner that wrongly permits a statement is a policy defect even if the database rejects it; conversely, a correct scanner does not justify provisioning a write-capable principal. The two layers have different failure semantics and should be reported independently.
Mechanism and trust boundary
- 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
- 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
- Nov 12, 2026Event type unspecified
Underlying finding disclosed
- Nov 12, 2026disclosure
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
- supportsDBHub PR #505: SQL dialect read-only validationpatch commit artifact
PR #505: Summary, SQL dialect handling and test plan
- supportsDBHub v1.7.0 releasepatch commit artifact
v1.7.0 release changelog, #505
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
- supportsDBHub PR #505: SQL dialect read-only validationpatch commit artifact
PR 505 description, dialect handling and explain restrictions
- supportsDBHub v1.7.0 releasepatch commit artifact
v1.7.0 release entry
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
- Nov 24, 2026 · Published version · first publication · revision 282