CVE-2026-48774: ProxySQL run_sql_readonly tool allows multi-statement writes via MCP
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-48774
- Published
- Record updated
- Fixed in
- The source references a patch, a mitigation or a vendor advisory.
Summary
ProxySQL versions 3.0.0 through 3.0.8 break the documented read-only contract of the GenAI/MCP `run_sql_readonly` tool for MySQL targets. The tool validates the full input string with a substring blacklist and first-keyword allowlist, then executes the entire string on a connection created with `CLIENT_MULTI_STATEMENTS`, so a leading `SELECT` followed by a side-effecting statement such as `RENAME TABLE` passes validation. In a live test, the `/mcp/query` endpoint reported success and the table was renamed, letting an MCP caller perform backend writes or administrative SQL limited only by the target account's database privileges.
Mitigation
Version 3.0.9 contains a fix. Other operator mitigations include: keeping MCP disabled unless required; setting a non-empty `mcp-query_endpoint_auth` token before exposing `/mcp/query`; restricting MCP listener network exposure; configuring MCP backend target credentials as database-level read-only users; and adding temporary MCP query rules to block obvious multi-statement patterns.
Topics
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online