mcp-cve-project

CVE-2026-61788 | @bytebase/dbhub’s read-only mode does not prevent database writes | High |

CVE Information

Field Value
CVE / NVD CVE-2026-61788
Date (index) 2026-09-24
Affected product (index) @bytebase/dbhub’s read-only mode does not prevent database writes
GHSA ID GHSA-mwwr-p57h-56pf
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-09-24
Ecosystem Source repository
Component bytebase/dbhub
EPSS score 0.004000000 (FIRST EPSS, 2026-11-09)
CVSS score 7.4 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CWE CWE-184, CWE-636, CWE-863
Affected versions < 0.22.6
Fixed versions None named in the published CVE record
Fix status No fixed version in the published CVE record
Exploit status Public advisory. This note does not include exploit steps.
Notes Updated on 2026-11-09 from the published CVE record and FIRST EPSS.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Depends on deployment. Typical MCP cases are a reachable HTTP or SSE listener, a malicious remote MCP server, a poisoned project configuration, or a person opening attacker-influenced content. Developer workstations and shared runners are high-value when the server runs with host access.

CVE is because of what bug?

The published weakness mapping is CWE-184, CWE-636, CWE-863. Use the linked advisory for the upstream root cause.

MCP-specific impact / why it matters

MCP connects a model to tools, files, and credentials on a host or network. A flaw in transport checks, path checks, command handling, or token binding can become code execution, credential exposure, or access to another user’s session.

Where was the bug? (source + snippet)

File and function names belong in the linked upstream advisory and patch. This index does not repeat exploit inputs.

Fix / Remediation

Apply the vendor’s patched release or commit. Until then, keep the affected MCP listener off untrusted networks and require authentication on HTTP transports.

Upstream fix (open source)

Workarounds / mitigations

Detection / verification