Skip to main content

ProxySQL CVE-2026-48774

| EUVDEUVD-2026-38075 HIGH
Improper Input Validation (CWE-20)
2026-06-19 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Discover exposed /mcp/query listener
  2. Delivery
    Bypass or obtain mcp-query_endpoint_auth token
  3. Exploit
    Submit run_sql_readonly with SELECT 1; RENAME TABLE payload
  4. Execution
    Validator approves on leading SELECT
  5. Persist
    MySQL executes both statements via CLIENT_MULTI_STATEMENTS
  6. Impact
    Backend 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 /mcp/query HTTP endpoint is reachable by the attacker (not the default - MCP is opt-in). Exploitation is unauthenticated only if the operator left mcp-query_endpoint_auth empty; setting that token forces the caller to know it. The backend MCP target account must have privileges for the side-effecting statement attempted (e.g. ALTER/RENAME/DROP for DDL, SUPER/PROCESS for KILL/SHUTDOWN), so an account scoped as a true database-level read-only user materially limits impact. No user interaction is required, and any MySQL target reached through the MCP tool on versions 3.0.0-3.0.8 is in scope; PostgreSQL targets share the parallel Query_Tool_Handler validator the fix also synchronises.

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 /mcp/query endpoint is reachable over the network, exploitation is a simple multi-statement string, no authentication is required against an unprotected listener, and the principal impact is integrity (backend writes, renames, DDL). The C:N rating is debatable - administrative statements like KILL or RENAME TABLE could indirectly expose data - but the chosen vector reasonably reflects the documented RENAME TABLE proof. There is no CISA KEV listing and no public EPSS figure was supplied, and no POC reference beyond the advisory's own live test, so this is best treated as a high-severity but not yet weaponised flaw. Real-world risk is gated by two important conditions not captured in the CVSS vector: the MCP plugin is opt-in and may be disabled in most deployments, and the optional mcp-query_endpoint_auth token, if set, blocks unauthenticated callers - meaning operators who shipped MCP open to the network are at highest risk while default installs are not. Genuine impact is also bounded by the privileges granted to the MCP backend MySQL user. Conflict to flag: CVSS PR:N assumes the endpoint is exposed without the auth token, which is an operator-configurable property rather than a default; environments enforcing mcp-query_endpoint_auth effectively require knowledge of that token (closer to PR:L).

Exploit ScenarioDerived

An attacker who can reach the ProxySQL /mcp/query endpoint - either directly because the listener was exposed without the optional mcp-query_endpoint_auth token, or via a prompt-injected LLM agent that legitimately holds the token - sends a run_sql_readonly request carrying SELECT 1; RENAME TABLE app.users TO app.users_pwn. The validator approves the payload because the first keyword is SELECT and RENAME is not on the legacy blacklist, and the backend connection's CLIENT_MULTI_STATEMENTS flag causes MySQL to execute both statements; the MCP response reports success for the SELECT while the second statement silently mutates the schema. The advisory documents exactly this flow as a successful live test, so a functional proof of concept is effectively published in the GHSA write-up even though no separate exploit code is indexed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

proxysql 3.0.6, < 3.0.9

Affected Packages

euvd proxysql_3_0_6 fix: 3.0.9

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 8.6 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Jun 19, 2026 - 21:02 EUVD

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 87% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy