目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-61789— DBHub 远程代码执行漏洞

一分钟漏洞结论

影响对象
bytebase dbhub
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

DBHub 是一款支持 Postgres、MySQL、SQL Server、Oracle、MariaDB 和 SQLite 的数据库模型上下文协议(MCP)服务器。在 0.22.6 版本之前,MySQL 和 MariaDB 连接器的只读 SQL 验证机制可被绕过。问题根源在于 中的 函数将任意双连字符( )均视为注释起始,而 MySQL 和 MariaDB 的实际规范要求双连字符后必须紧跟空白字符、控制字符或行尾才能构成注释。 尽管 中的只读检查逻辑通过 对拆分后的语句进行了验证,但 和 在启用 选项时,会直接执行

CVSS 6.1 · Medium EPSS 0.39% · P33

影响版本矩阵 1

厂商产品 版本范围状态
bytebase dbhub < 0.22.6 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-61789 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
DBHub: MySQL and MariaDB comment interpretation bypasses read-only SQL validation
来源: CVE Program / CVE List V5
Vulnerability Description
DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Prior to 0.22.6, read-only SQL validation can be bypassed on the MySQL and MariaDB connectors. In `src/utils/sql-parser.ts`, `scanSingleLineComment` treats every double dash as a comment start, whereas MySQL and MariaDB require following whitespace, a control character, or the end of the line. The read-only check in `src/tools/execute-sql.ts` validates split statements with `isReadOnlySQL`, but `src/connectors/mysql/index.ts` and `src/connectors/mariadb/index.ts` execute the original string with `multipleStatements` enabled. A double dash followed by a non-whitespace character can therefore hide a subsequent write or destructive DDL statement from the validator while the database interprets the dashes as minus operators and executes both statements. Anyone able to influence the assistant's SQL, including through prompt injection in content the assistant reads, can bypass read-only mode to modify or drop database data, subject to the database account's privileges. PostgreSQL is not affected by this path because its double-dash parsing agrees with the checker and its connector executes individual split statements. This issue is fixed in version 0.22.6.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
解释冲突
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
bytebase dbhub < 0.22.6 -

二、漏洞 CVE-2026-61789 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-61789 的情报信息

请登录查看更多情报信息。

CVE-2026-61789 补丁与修复 (1)

CVE-2026-61789 厂商安全公告 (1)

IV. Related Vulnerabilities