Skip to main content

DBHub CVE-2026-134803

| EUVDEUVD-2026-132860 HIGH
Interpretation Conflict (CWE-436)
2026-11-22 VulnCheck GHSA-p6h8-6r97-q9rf
7.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access DBHub via readonly MCP client
  2. Delivery
    Craft execute_sql with backslash-escaped quote
  3. Exploit
    Smuggle stacked DDL/write past parser
  4. Execution
    Clear transaction_read_only and COMMIT
  5. Impact
    Modify 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

dbhub 0 <1.7.0

Affected Packages

euvd dbhub fix: 1.7.0

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

Vendor (VulnCheck) PRIMARY 7.2 HIGH
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
vuln.today AI 8.1 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Low
niche developer-focused MCP database gateway, limited production footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy