<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:mysql_mcp_server_project:mysql_mcp_server:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3amysql_mcp_server_projectmysql_mcp_server/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 12 Sep 2026 00:57:18 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3amysql_mcp_server_projectmysql_mcp_server/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Unauthenticated SQL Execution and RCE in MySQL MCP Server via SSE Transport</title><link>https://feed.craftedsignal.io/briefs/2026-09-mysql-mcp-server-rce/</link><pubDate>Sat, 12 Sep 2026 00:57:18 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-mysql-mcp-server-rce/</guid><description>The mysql_mcp_server package (v &lt; 0.4.2) fails to implement security protections in SSE transport mode, enabling unauthenticated attackers to perform arbitrary SQL execution, data exfiltration, and potential remote code execution.</description><content:encoded><![CDATA[<p>The <code>mysql_mcp_server</code> package (prior to v0.4.2) contains a critical security vulnerability when configured to use the Server-Sent Events (SSE) transport mode. Due to the failure to instantiate <code>SseServerTransport</code> with <code>security_settings</code>, the application lacks essential protections, including DNS-rebinding prevention, CORS middleware, and TrustedHost validation. Furthermore, the application exposes unauthenticated endpoints (<code>/</code>, <code>/sse</code>, and <code>/messages/</code>) and binds to <code>0.0.0.0</code> by default.</p>
<p>An unauthenticated remote attacker can exploit this configuration to execute arbitrary SQL commands against the database backend. If the database user is configured with <code>FILE</code> privileges, this vulnerability enables arbitrary file read and write operations, which can be leveraged to achieve remote code execution by dropping a malicious web shell. Instances exposed to the internet are at high risk, as are local instances susceptible to browser-based DNS-rebinding attacks. 25 publicly reachable instances have already been identified.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies an exposed MySQL MCP Server instance running with <code>MCP_TRANSPORT=sse</code> on a public interface (0.0.0.0).</li>
<li>Attacker sends an unauthenticated HTTP POST request to the <code>/messages</code> endpoint.</li>
<li>The request includes a JSON payload containing a malicious SQL query within the <code>execute_sql</code> tool call.</li>
<li>The server receives the request and, lacking authentication middleware, processes the tool call directly.</li>
<li>The application invokes <code>cursor.execute(query)</code> using the attacker-supplied, unsanitized SQL.</li>
<li>The database executes the query, returning results to the attacker or performing file system operations (e.g., <code>INTO OUTFILE</code>).</li>
<li>Attacker successfully achieves data exfiltration or writes a malicious payload to the host system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for full database exfiltration, modification, and potential system compromise. Attackers can leverage MySQL's <code>FILE</code> privileges to read sensitive files or write executable files (web shells) to the underlying server. Evidence suggests 25 publicly exposed instances are currently reachable, posing an immediate risk to environments utilizing this server for LLM-integrated database tasks.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Upgrade <code>mysql_mcp_server</code> to version 0.4.2 or later immediately to enable mandatory security settings.</li>
<li>Configure the server to bind to <code>127.0.0.1</code> rather than <code>0.0.0.0</code> if remote access is not required.</li>
<li>Ensure the database user assigned to the MCP server follows the principle of least privilege, specifically revoking <code>FILE</code> access if not strictly required.</li>
<li>Implement network-level access control (firewall or VPN) to restrict access to the SSE transport interface.</li>
</ol>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>vulnerability</category><category>rce</category><category>sql-injection</category><category>mcp</category></item></channel></rss>