CVE-2026-61788
Last modified
CVE-2026-61788 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| bytebase | dbhub | < 0.22.6 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-61788?
How severe is CVE-2026-61788?
How do I fix CVE-2026-61788?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-61779NVIDIA Megatron Bridge contains a vulnerability where an att…7.8
- CVE-2026-6178The Betheme theme for WordPress is vulnerable to Stored Cros…6.4
- CVE-2026-61781pg_partman is a PostgreSQL extension that manages partitione…9.9
- CVE-2026-61782Rsdoctor is a build analyzer tailored for projects built wit…7.5
- CVE-2026-61783Wazuh is an open-source security platform providing unified …6.5
- CVE-2026-61784xhtml-purifier is a Node.js library to take in raw/unknown/u…6.1
- CVE-2026-6179Stored Cross Site Scripting in NightWolf Penetration Testing…5.4
- CVE-2026-61790Weblate is a web-based continuous localization platform used…4.4
- CVE-2026-61792Weblate is a web-based continuous localization platform used…7.7
- CVE-2026-61793Nuxt OG Image generates OG Images with Vue templates in Nuxt…6.9
- CVE-2026-61794Capsule is a multi-tenancy and policy-based framework for Ku…6.8
- CVE-2026-61795Capsule is a multi-tenancy and policy-based framework for Ku…6.8
Are you affected by CVE-2026-61788?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
