DBHub MCP server hit by 9.8 zero-day: crafted SQL can beat its access check

ZDI published an unpatched 9.8 flaw in Bytebase DBHub, the database MCP server behind many AI agents. It is the fifth 2026 hole in the same SQL guard. What is affected, what we found in the CVE record, and how to lock DBHub down today.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 4 min read
Share
Server rack in a dim data center with an open padlock glowing amber in front of a stack of database cylinders
Image: AI-generated, i10X
On this page
  1. A report from July 2025, published without a patch
  2. The fifth hole in the same guard this year
  3. Why this reaches beyond a niche tool
  4. What to do with a DBHub install today
  5. What is still open

Trend Micro’s Zero Day Initiative has gone public with an unpatched flaw in DBHub, the open source MCP server from Bytebase that lets AI agents query Postgres, MySQL, SQL Server, Oracle and other databases. Advisory ZDI-26-1067 (CVE-2026-136441) rates it 9.8 out of 10: a remote attacker needs no login and no user click, and the root cause is a wrong authorization decision made while DBHub parses untrusted SQL. ZDI published it as a zero-day because, by its timeline, Bytebase never shipped a confirmed fix in the 16 months since the report.

A report from July 2025, published without a patch

Alfredo Oliveira and David Fiser of Trend Research reported the bug on 18 July 2025. ZDI says it chased the vendor in October and December 2025 and told Bytebase on 9 November 2026 that it would publish without a fix. Its only advice is to restrict who can interact with the product. The CVE record names no fixed version, just a single affected commit, 16e870ba. We looked that commit up: it is dated 5 June 2025 and is titled “feat: support multi-sql statements”, the change that let one request carry several SQL statements.

ZDI labels the result an authentication bypass but has released no technical write-up. Read together with the commit, the most likely target is the check that decides whether a query only reads data before it reaches the database. That is our interpretation, not a detail ZDI has confirmed.

The fifth hole in the same guard this year

If that reading holds, this is a familiar story for DBHub. Its GitHub advisory page and the GitHub Advisory Database list four earlier 2026 flaws that let a caller get past the read-only setting or reach the server from a browser, each fixed in a later release:

CVEWhat brokeFixed in
CVE-2026-61742DNS rebinding on the HTTP transport let a web page run SQL through a local DBHub0.22.5
CVE-2026-61788Read-only mode did not stop database writes0.22.6
CVE-2026-61789MySQL and MariaDB: a statement hidden behind -- passed the check and still ran0.22.6
CVE-2026-134803Backslash escaped quotes hid stacked write and DDL statements1.7.0
CVE-2026-136441Incorrect authorization while parsing untrusted SQL (ZDI-26-1067)none named

The pattern matters more than any single entry. A text classifier that guesses what a database will do with a string keeps losing to the database’s own parser, and each fix closes one trick. Bytebase has moved in the right direction: since 0.22.6 every read-only query also runs inside the engine’s own read-only transaction, and version 2.1.0 from 21 November classifies Postgres queries with the real Postgres parser. Its own documentation now calls read-only mode a guardrail, not a permission boundary.

Why this reaches beyond a niche tool

DBHub is not a side project. The npm package @bytebase/dbhub was downloaded 292,480 times in the week to 23 November, and the repository has close to 4,000 stars. It ships as a ready plugin for Claude Code and Codex, with read-only mode switched on, which is exactly the setting people trust when they point an agent at production data. The realistic attacker is not someone typing SQL into the server, but text the agent reads, such as a support ticket or a web page, that nudges it into sending a crafted query.

DBHub’s documentation also lists where even the engine backstop does not help. On Oracle and TiDB the classifier alone blocks DDL, and on Apache Doris it is the only protection for everything. Functions a plain SELECT can call, such as lo_export on Postgres or LOAD_FILE on MySQL, are limited by database privileges, not by read-only mode.

What to do with a DBHub install today

  • Find it. Check your MCP client configs for @bytebase/dbhub and run npm ls -g @bytebase/dbhub. Move to the current release, 2.1.0. That closes the four fixed CVEs above, but nobody has confirmed that it closes ZDI-26-1067.
  • Treat the database account as the real boundary. Give DBHub a dedicated user that can only SELECT the schemas the agent needs. Verify it: in Postgres, SELECT rolsuper FROM pg_roles WHERE rolname = current_user; must return false; in MySQL, SHOW GRANTS FOR CURRENT_USER(); should list SELECT only. Never put an admin DSN behind a read-only tool.
  • Keep it off the network. ZDI’s only mitigation is to restrict access. Prefer the stdio transport inside the client; if you run the HTTP transport, bind it to localhost or put it behind a firewall and an authenticating proxy.
  • On Oracle, TiDB or Apache Doris, assume read-only mode can be bypassed and rely on database grants alone.
  • Do not let agents run SQL against production on autopilot while they also read untrusted text. Require a human approval for execute_sql on sensitive sources.

The same lesson came up with other database and agent connectors on our MCP security tracker, most recently when the official MCP Git server ran commands even on read-only calls. Old, unmaintained MCP servers are a related risk, as the MCPhantom research on deprecated servers showed.

What is still open

Three questions remain: which DBHub releases are really affected, whether one of the fixes above already closed the bug without credit, and whether Bytebase will respond to the advisory. As of Tuesday evening we found no statement from Bytebase on ZDI-26-1067 and no report of exploitation. We will update this article when the vendor names a fixed version.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Ternary Bonsai 2.5 27B: A 5.9 GB Local Agent Model With Near-FP16 Tool Scores
  2. Dell Books $60.2 Billion in AI Orders as Its AI Server Backlog Hits $132 Billion
  3. Skills over MCP Arrives in Claude: What Server Skills Change for Your Agents
  4. Ruflo MCP bridge flaw handed out shells and AI keys; a patch won’t undo poisoning
  5. DBHub MCP server hit by 9.8 zero-day: crafted SQL can beat its access check