CVE-2026-61788 json
@bytebase/dbhub's read-only mode does not prevent database writes
published 2026-09-24 45 d ago modified 2026-09-30 39 d ago also GHSA-mwwr-p57h-56pf , EUVD-2026-86326
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @bytebase/dbhub 0.22.6
- github.com/bytebase/dbhub@872bb33 commit
- github.com/bytebase/dbhub#342 pull request
- github.com/bytebase/dbhub/releases/tag/v0.22.6 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 41 d ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/bytebase/dbhub/security/advisories/GHSA-mwwr-p57h-56pf referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @bytebase/dbhub | <0.22.6 |
0.22.6 |
Affected products
- bytebase dbhub
Classification
References
-
github.com
/bytebase/dbhub/pull/342
web
-
github.com
/bytebase/dbhub/commit/872bb338f7d31f6afe517a076ac3e3edafaaaf08
web
-
github.com
/bytebase/dbhub/security/advisories/GHSA-mwwr-p57h-56pf
exploit, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-61788
advisory
-
github.com
/bytebase/dbhub
package
-
github.com
/bytebase/dbhub/releases/tag/v0.22.6
web
Sources
- CVE List CVE-2026-61788
- GitHub Advisory GHSA-mwwr-p57h-56pf
- NVD CVE-2026-61788
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.