AI Stack Alert Medium CVE-2026-61789 For CISO, SOC / IR, AppSec, AI Eng AI-assisted
DBHub MySQL/MariaDB read-only SQL check bypass via double-dash comments (CVE-2026-61789)
DBHub versions before 0.22.6 can bypass read-only SQL validation on the MySQL and MariaDB connectors. The parser treats any double dash as a comment start, while MySQL and MariaDB require whitespace, a control character, or end of line after it. The validator checks split statements, but the connectors execute the original string with multipleStatements enabled, so a hidden write or DDL statement can run.
Why it matters
An attacker who can influence the assistant's SQL, including via prompt injection in content the assistant reads, can modify or drop data on MySQL or MariaDB databases reachable by the DBHub account. The scope of damage is limited by that account's privileges.
Do this
- Upgrade DBHub to version 0.22.6 or later on all MySQL and MariaDB deployments.
- Until patched, run DBHub MySQL and MariaDB connections under a database account with only SELECT privileges.
- Review database accounts used by DBHub and remove unneeded INSERT, UPDATE, DELETE, and DDL grants.
- Audit MySQL and MariaDB logs for statements containing double dashes followed by non-whitespace characters, and for unexpected writes or DDL from the DBHub account.
- Note that PostgreSQL is not affected by this path according to the source, but confirm your DBHub version on all connectors.
Exploit Clock
Exploitation unlikely (for now)
- EPSS 0.39%
Signals
- NoCISA KEV
- 6.1CVSS
- 0.39%EPSS
- NoPublic PoC
- 27/100Priority
- 80%Confidence
Evidence
“Prior to 0.22.6, read-only SQL validation can be bypassed on the MySQL and MariaDB connectors.”
“A double dash followed by a non-whitespace character can therefore hide a subsequent write or destructive DDL statement from the validator”
“This issue is fixed in version 0.22.6.”
Sources
Affected / related
DBHub, SQL read-only validation bypass, prompt injection, MySQL, MariaDB
Published 2026-10-30 17:17 UTC · updated 2026-11-08 02:31 UTC · AI-assisted summary, checked against quoted sources · How we score