Skip to content
HighVulnerability

CVE-2026-48774: ProxySQL run_sql_readonly tool allows multi-statement writes via MCP

Identifier
CVE-2026-48774
Published
Record updated
View JSON
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.