DBHub before 1.7.0 Read-Only Mode Bypass via Backslash-Escaped Quotes
- State
- Published
- Severity
- 7.2 High
- Published
- Nov 22, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 22, 2026
Description
DBHub before 1.7.0 contains a read-only mode bypass vulnerability that allows MCP clients restricted to readonly execute_sql to run write and DDL statements via backslash-escaped quotes. Attackers can hide stacked statements that clear transaction_read_only or COMMIT inside strings misparsed by scanSingleQuotedString, letting them modify or drop MySQL, MariaDB, or PostgreSQL data.
| Product | Versions |
|---|---|
| DBHub Bytebase | before 1.7.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.2 High | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-436 Interpretation Conflict
References
- https://github.com/bytebase/dbhub/commit/cc9e3c7ad36b9fafd333a08d455781f2c5b548eePatch
- https://github.com/bytebase/dbhub/pull/505PatchIssue Tracker
- DBHub v1.7.0 Release NotesRelease Notes
- https://github.com/bytebase/dbhub/blob/v1.6.1/src/utils/sql-parser.ts#L79-L88Technical Details
- VulnCheck Advisory: DBHub before 1.7.0 Read-Only Mode Bypass via Backslash-Escaped QuotesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.