Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege MCP client access
-
DeliveryCraft malicious mysql://database/<SQLi_payload> URI
-
ExploitSubmit URI to read_resource endpoint
-
ExecutionBypass absent table-name validation
-
PersistExecute injected SQL against backend MySQL
-
ImpactExfiltrate or manipulate database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold low-privilege authenticated access to the mysql-mcp-server instance (CVSS PR:L confirmed). Exploitation requires that the target is running mysql-mcp-server version 0.2.2 or earlier. The injection point is specifically the table-name segment of mysql://database/<name> URIs processed by the read_resource function - the server must be reachable and the attacker must be able to issue MCP resource read requests. Exploitation is limited by: (1) the PR:L authentication requirement - purely anonymous network access is insufficient; (2) the relatively narrow deployment context of MCP servers, which are typically internal toolchain components rather than public-facing services; (3) the unchanged scope (S:U), meaning the SQL injection is bounded to the connected MySQL database and does not directly pivot to the underlying OS. The most realistic threat actor is a compromised or malicious AI agent, prompt-injected LLM, or developer with MCP client access. |
| Impact | The CVSS 3.1 base score of 6.3 reflects a network-reachable (AV:N), low-complexity (AC:L) attack requiring low privileges (PR:L) with no user interaction (UI:N) and unchanged scope (S:U), with partial confidentiality, integrity, and availability impact (C:L/I:L/A:L). The temporal modifiers - Exploit:Proof-of-Concept (E:P), Remediation:Official Fix (RL:O), Report Confidence:Confirmed (RC:C) - align with the known state: a public PoC exists and a vendor-confirmed patch is available. The PR:L requirement is a meaningful limiting factor: an attacker must hold some authenticated access to the MCP server (e.g., as an AI agent client or API consumer), preventing entirely unauthenticated exploitation. EPSS data was not provided; the absence from CISA KEV and the targeted MCP toolchain audience suggest real-world exploitation is currently low-volume and not opportunistic at scale. The primary risk is in AI-agent pipelines where the MCP server is exposed to untrusted or semi-trusted input - a credible threat model given LLM prompt-injection scenarios where crafted user input reaches tool arguments. |
| Exploit ScenarioDerived | An authenticated MCP client - such as an AI agent or developer tool with configured access to the mysql-mcp-server - sends a read_resource request with a crafted mysql://database/<payload> URI where the table name segment contains SQL metacharacters or subqueries. The unvalidated table name is interpolated directly into a MySQL query, allowing the attacker to extract data from unauthorized tables, modify records, or enumerate the database schema. A public proof-of-concept demonstrating this technique is available in GitHub issue #89. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
SQL injection in designcomputer mysql-mcp-server (versions up to 0.2.2) allows authenticated remote attackers to execute arbitrary SQL via a crafted mysql:// URI passed to the read_resource function in server.py. The vulnerability stems from insufficient validation of the table-name segment in mysql://database/<name> URIs before interpolation into MySQL queries. A publicly available proof-of-concept exploit exists (GitHub issue #89); the issue is not listed in CISA KEV, indicating no confirmed widespread active exploitation at time of analysis. An official fix was released as v0.3.0 (also backported to v0.2.3).
RemediationAI
Upgrade to mysql-mcp-server version 0.3.0 (or at minimum 0.2.3), available via pip: pip install --upgrade mysql-mcp-server. The fix is confirmed in commit 080bef9a96d625ce0dfbde573a08b93497871981 and tagged release v0.3.0 at https://github.com/designcomputer/mysql_mcp_server/releases/tag/v0.3.0. If immediate upgrade is not possible, restrict access to the MCP server to trusted, fully authenticated clients only, and avoid exposing the server to any path where untrusted input (such as LLM-generated or user-supplied strings) can reach the uri_str argument of read_resource. Deploying in SSE/HTTP mode (MCP_TRANSPORT=sse) with the default MCP_SSE_HOST=127.0.0.1 binding limits network exposure as a partial compensating control, but does not eliminate the injection flaw. The Docker hardening in v0.3.0 (non-root appuser, removed ENV secrets) should also be adopted if running containerized.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mysql-mcp-server is a Python implementation of the Model Context Protocol (MCP) that exposes a MySQL database to AI agents and LLM-based toolchains. The affected component is the read_resource handler in src/mysql_mcp_server/server.py, which processes resource URIs of the form mysql://database/<table_name>. Prior to the fix, the table_name segment extracted from uri_str was interpolated into SQL queries without strict allowlist validation, satisfying CWE-89 (Improper Neutralization of Special Elements in SQL Commands). The CPE cpe:2.3:a:designcomputer:mysql-mcp-server:*:*:*:*:*:*:*:* covers all versions up to and including 0.2.2. The fix introduced a validate_identifier() utility enforcing the strict regex ^[a-zA-Z0-9_$]+$ and backtick-quoting of identifiers, eliminating the injection surface.
Know when Mysql Mcp Server 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was determined in designcomputer mysql-mcp-server up to 0.2.2. The impacted element is the function read_resource of the file src/mysql_mcp_server/server.py of the component mysql URI Handler. This manipulation of the argument uri_str causes sql injection. Remote exploitation of the attack is possible. The exploit has been publicly disclosed and may be utilized. Upgrading to version 0.3.0 is sufficient to resolve this issue. Patch name: 080bef9a96d625ce0dfbde573a08b93497871981. Upgrading the affected component is advised.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-35108
GHSA-mvq4-39wx-6h5g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB