What happened
WhoDB from 0.88.0 before 0.132.0 has an access-control bypass in the MCP whodb_query tool. The sqlguard keyword classifier omits INTO, OUTFILE and DUMPFILE, so callers can run file-writing statements without approval; MCP clients or prompt-injected models can execute PostgreSQL lo_export (and similar) to write files outside the intended DB scope. Published 2026-11-27, fixed in 0.132.0.
Why it matters
A DB-browsing MCP tool that is supposed to be read-focused can be driven (via prompt injection or a malicious MCP client) into writing files on the host, turning a data-exploration agent into a file-write primitive.
Attack vector
MCP client or prompt-injected model calls whodb_query with INTO/OUTFILE/DUMPFILE/lo_export statements that bypass the sqlguard classifier to write files.
Affected systems
WhoDB 0.88.0 to < 0.132.0
Mitigation
Upgrade to WhoDB 0.132.0 or later.