Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess DBHub via readonly MCP client
-
DeliveryCraft execute_sql with backslash-escaped quote
-
ExploitSmuggle stacked DDL/write past parser
-
ExecutionClear transaction_read_only and COMMIT
-
ImpactModify or drop database tables
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Exploitation requires the attacker to already be an MCP client that DBHub (before 1.7.0) has granted readonly execute_sql access, connected to a MySQL, MariaDB, or PostgreSQL backend; this authorization is the primary limiting factor (PR:L), and no user interaction is needed. The attacker crafts SQL using backslash-escaped single quotes (or PostgreSQL E'...' / double-quoted strings) that the vulnerable scanSingleQuotedString misparses, hiding stacked statements such as SET transaction_read_only=0, COMMIT, and write/DDL. For MySQL specifically, whether the payload is hidden depends on the server's SQL mode (the patch tests distinguish NO_BACKSLASH_ESCAPES behavior), so the exact backend configuration affects reliability; the flaw does not grant new read access, only write/DDL beyond the intended read-only scope. |
| Impact | This is a genuine access-control (read-only mode) bypass rather than a high-CVSS-but-low-impact issue, but its real-world risk is bounded by a prerequisite: the attacker must already be an MCP client authorized for readonly execute_sql against a DBHub instance (CVSS 4.0 PR:L confirms authentication/authorization is required - this is not unauthenticated). The vector is network-reachable with low attack complexity (AV:N/AC:L/AT:N/UI:N), and impact is high to integrity and availability (VI:H/VA:H) with no confidentiality impact (VC:N) - logical, since the client could already read data and the flaw adds the ability to write/DDL. No EPSS score, no CISA KEV listing, and no confirmed public exploit were provided in the input, so there is no signal of active or widespread exploitation; the VulnCheck advisory and the fix PR are references, not working exploit code. The vendor-assigned priority is 'this_week' (not act_now/emergency), consistent with a patched, authorization-scoped flaw. Note one nuance to verify: on MySQL the bypass's visibility depends on the server's SQL mode (NO_BACKSLASH_ESCAPES), per the patch test cases, so exploitability varies by backend configuration. |
| Exploit ScenarioDerived | An attacker operating an MCP client that DBHub has restricted to read-only execute_sql submits a query containing backslash-escaped quotes (e.g. SELECT '\' , '; SET SESSION transaction_read_only=0; COMMIT; DROP TABLE t; SELECT ''). The vulnerable scanSingleQuotedString misparses the escaped quote, hiding the stacked statements from the read-only classifier, so the write/DDL reaches the MySQL, MariaDB, or PostgreSQL backend and executes. No public exploit was identified in the input, though the vendor patch's test suite documents the exact bypass strings. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Read-only mode bypass in DBHub 1.6.1 and earlier lets MCP clients that were granted read-only execute_sql access run write and DDL statements against MySQL, MariaDB, or PostgreSQL backends. The attacker hides stacked statements behind backslash-escaped quotes so DBHub's SQL classifier misses them, while the database engine executes them. Exploitation requires an existing authorized MCP client (PR:L) and no user interaction; no public exploit code was identified at time of analysis, and vendor patches are available in DBHub 1.7.0.
RemediationAI
Upgrade DBHub to 1.7.0 or later; the fixed release is tagged v1.7.0, and the upstream fix is commit cc9e3c7ad36b9fafd333a08d455781f2c5b548ee with pull request https://github.com/bytebase/dbhub/pull/505. No separate vendor workaround is documented in the supplied references. If upgrade must be delayed, restrict read-only execute_sql grants to trusted MCP clients and enforce read-only privileges on the backing MySQL, MariaDB, or PostgreSQL account, because the bypass defeats DBHub's parser-level read-only check rather than the database's own privilege system; this reduces impact but does not repair the vulnerable parser. Vendor advisory: https://www.vulncheck.com/advisories/dbhub-before-1.7.0-read-only-mode-bypass-via-backslash-escaped-quotes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is an interpretation conflict (CWE-436) between DBHub's SQL tokenizer and the backend database's SQL parser. DBHub enforces read-only execute_sql by splitting incoming SQL into statements and stripping comments and strings before classification; its scanSingleQuotedString handling of backslash-escaped quotes can place string boundaries incorrectly. As a result, statements such as SET transaction_read_only=0, COMMIT, and DROP TABLE can be hidden inside what DBHub treats as a string, while MySQL, MariaDB, or PostgreSQL sees and executes them. The patch replaces the single-parse logic with splitSQLStatementVariants and stripCommentsAndStringsVariants so every plausible dialect reading-including MySQL/MariaDB NO_BACKSLASH_ESCAPES and ANSI_QUOTES, and PostgreSQL E'...' strings-must see one statement and a read-only operation.
Know when Dbhub gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Reachable over the network (AV:N/AC:L) but only by an already-authorized readonly MCP client (PR:L); impact is write/DDL on data (I:H/A:H) with no new read capability (C:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
DBHub, a database access tool used by MCP clients, contains a read-only mode bypass (CVE-2026-134803) that allows authorized users with read-only privileges to execute unauthorized write and DDL statements against MySQL, MariaDB, or PostgreSQL databases. This undermines data integrity and access controls, potentially leading to data tampering or schema changes by insiders or compromised accounts. Leadership should care because it erodes trust in database security boundaries and could result in regulatory or reputational harm.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Unauthenticated MCP tool invocation in DBHub versions prior to 0.22.5 allows a malicious website to reach the HTTP trans
DBHub's `readonly = true` option on its `execute_sql` tool fails to enforce read-only database access in versions prior
Read-only mode in Bytebase DBHub before 0.22.6 can be bypassed on the MySQL and MariaDB connectors, allowing write and d
Bytebase DBHub through version 2.0.0 relies on a keyword denylist (escapeHatchFunctionKeywords in src/utils/allowed-keyw
EUVD-2026-132860
GHSA-p6h8-6r97-q9rf
NVD
CVE.org
EPSS
Exploit-DB