CVE-2026-138032: WhoDB 0.88.0 before 0.132.0 MCP Read-Only Bypass via Server-Side File Writes
WhoDB from 0.88.0 before 0.132.0 contains an access control bypass in the MCP whodbquery tool, letting callers run file-writing statements without approval because the sqlguard keyword classifier omits INTO, OUTFILE and DUMPFILE. MCP clients or prompt-injected models can execute PostgreSQL loexport or MySQL SELECT INTO OUTFILE to create files on the database host and create tables, bypassing confirmation and read-only modes.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
WhoDB deployments from 0.88.0 before 0.132.0 are affected when the MCP whodb_query tool is available to MCP clients or to models that can be prompt-injected. The issue concerns database operations performed through that tool.
What does an attacker need to exploit it?
An attacker needs the ability to cause calls to the MCP whodb_query tool, either as an MCP client or through a prompt-injected model. Exploitation relies on file-writing SQL statements such as PostgreSQL lo_export or MySQL SELECT INTO OUTFILE.
Do read-only mode and confirmation controls prevent exploitation?
No. The affected sqlguard keyword classifier does not recognize INTO, OUTFILE, or DUMPFILE, allowing file-writing statements and table creation to bypass confirmation and read-only modes.
What should be prioritized for remediation?
Update WhoDB to 0.132.0 or later. Until updating, restrict access to the MCP whodb_query tool and do not allow untrusted MCP clients or prompt-influenced models to invoke it.