mcp-cve-project

CVE-2026-48774 | ProxySQL GenAI/MCP run_sql_readonly multi-statement bypass | Severity: see NVD

CVE Information

Field Value
CVE / NVD CVE-2026-48774
Date (index) 2026-06-19
Affected product (index) ProxySQL GenAI/MCP run_sql_readonly multi-statement bypass
GHSA ID GHSA-7WH6-2VCC-GCM4
OWASP MCP Top 10 (2025) MCP02 — Privilege Escalation via Scope Creep
Published / disclosed 2026-06-19
Ecosystem Application / upstream project
Component ProxySQL GenAI/MCP run_sql_readonly multi-statement bypass
EPSS score 0.002260000 (FIRST EPSS, 2026-06-30)
CVSS score Secondary HIGH — 7.5 CVSS v3.1
CWE CWE-20
Affected versions proxysql >= 3.0.6, < 3.0.9
Fixed versions No fixed version listed in NVD/GitHub advisory
Fix status Unfixed
Exploit status Public CVE record; do not mirror weaponized payloads
Notes Added during the 2026-06-24 missing-CVE review from NVD MCP keyword results. Re-check NVD before using this entry for compliance reporting.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Exposure depends on how the affected MCP server, client, gateway, plugin, or adjacent AI tool is deployed. Prioritize systems reachable by untrusted users or networks, systems that accept attacker-controlled tool arguments, and systems with access to credentials, browsers, cloud APIs, Kubernetes clusters, databases, email, or desktop automation.

CVE is because of what bug?

Primary mapped weakness: MCP02 — Privilege Escalation via Scope Creep. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.

MCP-specific impact / why it matters

MCP components bridge model output to privileged tools. Vulnerabilities in authentication, scope enforcement, command execution, SSRF validation, secret handling, or tool registration can turn prompt/tool input into host compromise, credential disclosure, unauthorized cloud/database access, or persistent malicious tool execution.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.

Fix / Remediation

Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

Track NVD references for CVE-2026-48774 and apply the upstream patched release or commit recommended by the vendor/CNA.