CVE-2026-61789
Tenable Plugin
Checking the public Tenable catalog…
AI Threat Summary
CVE-2026-61789 is a moderate vulnerability affecting the target software. This vulnerability allows SQL injection leading to unauthorized data access. Threat hunters should monitor for exploit attempts and apply vendor patches immediately.
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.
Attack Chain
Attacker fingerprints web application and identifies injectable parameters using automated scanners
Attacker injects SQL payload via vulnerable parameter to bypass authentication or extract data
Attacker dumps database tables including user credentials, session tokens, and sensitive data
Extracted password hashes cracked offline using hashcat/john or plain-text credentials used directly
Valid credentials reused across other systems and services in the environment
MITRE ATT&CK Techniques
SQL injection exploited against web application database layer
Database contents exfiltrated including credentials and PII
Credentials stolen from database used for further access
Indicators of Compromise
| Type | Value | Description | |
|---|---|---|---|
| user_agent | Mozilla/5.0 (compatible; exploit/1.0) |
Generic exploit scanner user agent pattern | |
| url | /api/vuln-endpoint?payload=<malicious> |
Exploit attempt against application endpoint — monitor access logs for anomalous params | |
| url | ' OR 1=1-- |
Classic SQL injection payload — monitor WAF and DB query logs |
Remediation
Quick Facts
| CVE ID | CVE-2026-61789 |
| CVSS Score | N/A |
| Published | 2026-10-30 |
| Exploited | No |
| CISA KEV | No |
| PoC | Not public |