Skip to content
MediumVulnerability

CVE-2025-64340: FastMCP command injection through server names in install commands on Windows

Identifier
CVE-2025-64340
Published
Record updated
View JSON
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.