CVE-2026-61789

NONE
Published: 2026-10-30
Modified: 2026-10-30
Enriched via mock
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
1
Reconnaissance

Attacker fingerprints web application and identifies injectable parameters using automated scanners

2
Initial Access

Attacker injects SQL payload via vulnerable parameter to bypass authentication or extract data

3
Collection

Attacker dumps database tables including user credentials, session tokens, and sensitive data

4
Credential Access

Extracted password hashes cracked offline using hashcat/john or plain-text credentials used directly

5
Lateral Movement

Valid credentials reused across other systems and services in the environment

MITRE ATT&CK Techniques
T1190 Exploit Public-Facing Application
Initial Access

SQL injection exploited against web application database layer

T1005 Data from Local System
Collection

Database contents exfiltrated including credentials and PII

T1078 Valid Accounts
Defense Evasion

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
1. Apply vendor-supplied security patches immediately. 2. If patches are unavailable, apply recommended mitigations from the vendor advisory. 3. Enable WAF rules or IDS signatures to detect exploitation attempts. 4. Monitor logs for indicators of compromise listed above. 5. Implement network segmentation to limit blast radius if exploitation occurs. 6. Subscribe to vendor security advisories for this product.