Vulnerability  ·  2026-11-24

DBHub MCP read-only mode bypass lets restricted clients run writes/DDL

VulnerabilityHigh impactGlobalCVE-2026-134803
Bytebase DBHub before 1.7.0 misparses backslash-escaped quotes so that MCP clients restricted to readonly execute_sql can hide stacked statements that clear transaction_read_only or COMMIT inside strings. An attacker can modify or drop MySQL, MariaDB or PostgreSQL data despite being read-only. CVSS 8.1 (CVSS 3.1).
DBHub is an MCP database server, so read-only is the intended authorization boundary between an AI agent and the data it can touch. This bypass lets a prompt-injected or compromised agent — or any agent whose read-only quota is enforced by the server — issue destructive writes and DDL against production databases while appearing to stay within its read-only grant.
MCP client restricted to readonly executes write/DDL via backslash-escaped quotes that mislead the SQL parser and stack statements clearing transaction_read_only.
@bytebase/dbhub < 1.7.0
Upgrade to v1.7.0 (fix in PR #505); after patching, re-test that read-only MCP clients cannot modify data.
NVD detailDBHub fix commitVulnCheck advisory
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →