{"id":"CVE-2025-64340","published":"2026-04-03T15:16:13Z","modified":"2026-04-03T16:12:58Z","title":"FastMCP has a Command Injection vulnerability - Gemini CLI","vendor":"jlowin","product":"fastmcp","tier":"tail","description":{"text":"FastMCP is the standard framework for building MCP applications. Prior to version 3.2.0, server names containing shell metacharacters (e.g., &) can cause command injection on Windows when passed to fastmcp install claude-code or fastmcp install gemini-cli. These install paths use subprocess.run() with a list argument, but on Windows the target CLIs often resolve to .cmd wrappers that are executed through cmd.exe, which interprets metacharacters in the flattened command string. This issue has been patched in version 3.2.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00765,"percentile":0.56333,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-m8x7-r2rg-vh5g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrefectHQ/fastmcp/pull/3522","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.27},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"jlowin","affectedVersions":[{"vendor":"jlowin","product":"fastmcp","versions":["< 3.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-03T16:11:50.768330Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"fastmcp","vulnerableRanges":["<3.2.0"],"patched":["3.2.0"],"from":["GHSA-m8x7-r2rg-vh5g","PYSEC-2026-2475"],"provenance":"source"}],"summary":{"text":"FastMCP, the framework for building MCP applications, has a command injection flaw in its fastmcp install claude-code and fastmcp install gemini-cli install paths on Windows, where server names containing shell metacharacters are passed through cmd.exe via .cmd wrappers. An attacker with local access who can get a user to run an install with a crafted server name, through user interaction, could execute arbitrary OS commands; the flaw affects versions before 3.2.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:42Z"},"euvd":{"id":"EUVD-2025-209207","exploited":false,"provenance":"source"}}