Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover exposed /mcp/query listener
-
DeliveryBypass or obtain mcp-query_endpoint_auth token
-
ExploitSubmit run_sql_readonly with SELECT 1; RENAME TABLE payload
-
ExecutionValidator approves on leading SELECT
-
PersistMySQL executes both statements via CLIENT_MULTI_STATEMENTS
-
ImpactBackend schema/state altered within MCP account privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires that the ProxySQL GenAI/MCP plugin is enabled and the |
| Impact | The 7.5 CVSS score with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N is consistent with the description: the |
| Exploit ScenarioDerived | An attacker who can reach the ProxySQL |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Improper input validation in ProxySQL versions 3.0.0 through 3.0.8 lets MCP callers bypass the GenAI run_sql_readonly tool's read-only contract by submitting multi-statement payloads such as SELECT 1; RENAME TABLE x TO y, which execute in full because the backend connection enables CLIENT_MULTI_STATEMENTS. An attacker reaching the /mcp/query endpoint can perform writes and administrative SQL up to the privileges of the configured MCP backend account. No public exploit identified at time of analysis, though the upstream advisory documents a successful live test against the endpoint.
RemediationAI
Vendor-released patch: ProxySQL 3.0.9 - upgrade per advisory GHSA-7wh6-2vcc-gcm4 (https://github.com/sysown/proxysql/security/advisories/GHSA-7wh6-2vcc-gcm4) which corresponds to fix commit e32b7fd that disables CLIENT_MULTI_STATEMENTS on MCP backend connections, broadens the dangerous-keyword blacklist (RENAME, FLUSH, RESET, LOCK/UNLOCK, KILL, OPTIMIZE, REPAIR, HANDLER, INSTALL/UNINSTALL, PURGE, SHUTDOWN, transaction control, ANALYZE, etc.), adds a lexer-aware multi-statement detector, and applies the same validation to explain_sql. If immediate upgrade is not possible, keep the MCP plugin disabled unless explicitly required, which fully removes the attack surface at the cost of losing GenAI tool integration. If MCP must remain enabled, set a non-empty mcp-query_endpoint_auth token before exposing /mcp/query (trade-off: every MCP caller must be reconfigured with the token), restrict the MCP listener to loopback or a management VLAN via firewall rules so only trusted agents can reach it, configure the MCP target MySQL credentials as a database-level read-only user with no DDL or administrative grants (limits blast radius even if the validator is bypassed), and add temporary ProxySQL query rules that reject inputs containing an unquoted ; followed by further non-whitespace content to block obvious multi-statement payloads (may break any legitimate batched queries).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ProxySQL is a high-performance proxy for MySQL/PostgreSQL backends. The newly-introduced GenAI/MCP plugin exposes a run_sql_readonly tool over an HTTP /mcp/query endpoint intended for use by LLM agents. Per the commit at sysown/proxysql@e32b7fd, the pre-fix validator (validate_readonly_query / is_dangerous_query in plugins/genai/src/tool_handlers/MySQL_Tool_Handler.cpp) only inspected the full input string with a substring blacklist plus a first-keyword allowlist, but the backend connection pool was initialised with the libmysqlclient CLIENT_MULTI_STATEMENTS flag. The MySQL server therefore happily executed every ;-separated statement after the validator approved the payload based on the leading SELECT. Compounding the gap, side-effecting verbs such as RENAME, FLUSH, RESET, LOCK, UNLOCK, KILL, OPTIMIZE, REPAIR, HANDLER, INSTALL, PURGE, SHUTDOWN, and transaction-control keywords were absent from the blacklist, and explain_sql blindly prefixed EXPLAIN to attacker SQL with no validation at all. Root cause maps to CWE-20 (Improper Input Validation), specifically a parser-vs-executor mismatch where one component validates a single-statement view while another executes the multi-statement reality. Affected CPE: cpe:2.3:a:sysown:proxysql:*:*:*:*:*:*:*:*.
Know when Proxysql gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Network-reachable MCP endpoint, trivial multi-statement payload, unauthenticated when default auth token is empty; integrity high (writes/DDL), confidentiality low and availability low via KILL/SHUTDOWN within account grants.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
ProxySQL is a proxy for MySQL and its forks, as well as PostgreSQL. In versions 3.0.0 through 3.0.8, ProxySQL's GenAI/MCP run_sql_readonly tool violates its documented read-only contract for MySQL targets. The tool validates only the full input string with a substring blacklist and first-keyword allowlist, but then executes the entire SQL string on a backend connection created with CLIENT_MULTI_STATEMENTS. As a result, a caller can submit a read-only first statement followed by a side-effecting second statement, such as SELECT 1; RENAME TABLE .... The validator accepts the payload because it starts with SELECT and because side-effecting MySQL statements such as RENAME TABLE, SET, RESET, LOCK TABLES, and KILL are not rejected by the blacklist. In a live MCP runtime test, the /mcp/query endpoint accepted a run_sql_readonly request. The MCP response reported success for the first SELECT, and direct backend verification showed that the table had actually been renamed. This violates the endpoint's read-only security contract and lets an MCP caller perform backend writes or administrative SQL, limited by the configured MCP target account's database privileges. 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.
Articles & Coverage 1
Executive ViewAI
ProxySQL versions 3.0.0 through 3.0.8 contain an input validation flaw allowing MCP callers to bypass read-only SQL constraints and execute administrative or write operations against backend databases. The vulnerability poses direct risk to database integrity and availability; organizations using these versions with exposed MCP endpoints could experience unauthorized data modification or schema tampering. No public exploit identified at time of analysis, though the vendor has validated the vulnerability.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict network access to /mcp/query via firewall, allowing only trusted internal clients; (2) apply principle of least privilege to MCP backend database accounts, removing schema modification permissions; (3) deploy database activity monitoring with real-time alerting for unexpected write or administrative operations; (4) disable CLIENT_MULTI_STATEMENTS in ProxySQL configuration if operationally feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Source-address spoofing in ProxySQL 2.0.0 through 3.0.8 lets any TCP peer that can reach the MySQL frontend port forge t
Pre-authentication heap memory corruption in ProxySQL 2.0.18 through 3.0.8 allows remote unauthenticated attackers to co
Heap information disclosure in ProxySQL releases before 3.0.10, 3.1.10, and 4.0.10 allows an authenticated MySQL client
EUVD-2026-38075
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB