Read the docs

Read-only mode bypass in Bytebase DBHub via escaped quotes

Priority LOW 33CWE-436Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

DBHub before 1.7.0 contains a read-only mode bypass that lets MCP clients restricted to the readonly execute_sql tool run write and DDL statements. A parser flaw in scanSingleQuotedString misreads backslash-escaped quotes (CWE-436), so attackers can hide stacked statements that clear transaction_read_only or COMMIT inside strings. A remote attacker with low privileges can modify or drop data in MySQL, MariaDB, or PostgreSQL databases.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00616 43rd percentileScored 2026-11-30
Fix Fixed DBHub (Bytebase): 1.7.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
bytebaseDBHubbefore 1.7.01.7.0Patch availableCNA
  • DBHub Vendorbytebase Affected before 1.7.0 Fixed in 1.7.0 Patch available CNA

Remediation

Upgrade Bytebase DBHub to version 1.7.0 or later, which fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

  • Fix · CNA DBHub (Bytebase) Fixed in 1.7.0

Timeline

  1. 2026-11-22 Threatist record created from CVE-2026-134803
  2. 2026-11-23 Alias added: GHSA-p6h8-6r97-q9rf
  3. 2026-11-24 CISA SSVC decision points changed

References

  • TI-2026-44186 DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution CVSS 4.0CRITICAL 9.3
  • TI-2026-44228 @bytebase/dbhub's read-only mode does not prevent database writes CVSS 3.1HIGH 7.4
  • TI-2026-83204 Read-only bypass in DBHub MySQL and MariaDB connectors via comments CVSS 4.0MEDIUM 6.1
  • TI-2022-13896 bytebase - Improper Authorization CVSS 3.1MEDIUM 4.3
  • TI-2022-13895 bytebase - Improper Authorization CVSS 3.1MEDIUM 4.3
  • TI-2026-97763 Authentication bypass in Bytebase DBHub MCP server via SQL parsing CVSS 3.0CRITICAL 9.8
See all 10 →

Sources