MediumVulnerability
CVE-2025-64340: FastMCP command injection through server names in install commands on Windows
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-64340
- Published
- Record updated
- Affected
- fastmcp < 3.2.0
- Fixed in
- 3.2.0
- released March 30, 2026, 4 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%
Summary
CVE-2025-64340 affects FastMCP, a framework for building MCP applications, before version 3.2.0. On Windows, server names containing shell metacharacters such as & can trigger command injection when passed to fastmcp install claude-code or fastmcp install gemini-cli. The install paths call subprocess.run() with a list argument, but target CLIs that resolve to .cmd wrappers run through cmd.exe, which interprets the metacharacters in the flattened command string.
Mitigation
Fixed in 3.2.0.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- fastmcpPyPILLM dependency since 2024-11-30 · 16 tracked dependents
Topics
Related items
- CriticalGHSA-9x8x-crjq-g64h: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesSimilar attack · GitHub Advisory Database
- HighGHSA-24pw-rf5p-mgp7: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP modeSimilar attack · GitHub Advisory Database
- HighGHSA-m932-63jc-4jqq: k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool executionSimilar attack · GitHub Advisory Database
- HighGHSA-3mgh-93r5-r7jf: CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCESimilar attack · GitHub Advisory Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSimilar attack · GitHub Advisory Database