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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-61788— bytebase/dbhub 只读模式未阻止数据库写入

一分钟漏洞结论

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

DBHub 是一个支持 PostgreSQL、MySQL、SQL Server、Oracle、MariaDB 和 SQLite 等数据库的 MCP(Model Context Protocol)服务器。在版本 0.22.6 之前,即使将 工具的 参数设置为 ,也无法使数据库连接真正变为只读状态。 尽管连接器代码旨在设置 PostgreSQL 的 (并将 SQLite 以只读模式打开),但这段逻辑被一个配置值所控制,而该配置值从未被正确填充,导致相关代码从未执行。因此,唯一剩余的只读保护机制是一个基于分类器的简单检查

CVSS 7.4 · High EPSS 0.30% · P21
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
@bytebase/dbhub's read-only mode does not prevent database writes
来源: CVE Program / CVE List V5
Vulnerability Description
DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Prior to version 0.22.6, setting `readonly = true` on the `execute_sql` tool does not make the connection read-only. The connectors are written to set PostgreSQL `default_transaction_read_only=on` (and open SQLite in `readOnly` mode), but that code is gated on a config value that is never populated, so it never runs. The only thing left enforcing read-only is a classifier that inspects the first keyword of each statement. Any `SELECT` that writes or has side effects through a function call passes it. With an ordinary role this allows sequence tampering; with a privileged role it allows writing arbitrary files on the server (`lo_export`), reading arbitrary host files (`pg_read_file`), and remote code execution (`dblink` + `COPY ... TO PROGRAM`). The HTTP transport is unauthenticated and binds to `0.0.0.0` by default, so this is reachable by any network caller of `/mcp`. Version 0.22.6 patches the issue.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
不完整的黑名单
来源: CVE Program / CVE List V5

受影响产品

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

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2026-61788 其他参考 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-61788

暂无评论


发表评论