FastMCP has a Command Injection vulnerability - Gemini CLI
CVE-2025-64340 · GHSA-m8x7-r2rg-vh5g · published 2026-03-31 · updated 2026-04-06
- Severity
- Medium
- CVSS score
- 6.7
- Chance of exploitation (EPSS)
- 0.75%
- Fixed in
- 3.2.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
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.
Upgrade fastmcp to 3.2.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| fastmcp | PyPI | < 3.2.0 | 3.2.0 |
47 registered MCP servers install an affected version today, by the dependency versions a fresh install resolves.
- aws.api.us-east-1.ecs-mcp/serverfastmcp@2.14.0
- aws.api.us-east-1.eks-mcp/serverfastmcp@2.14.0
- io.github.aadeshrao123/unreal-mcpfastmcp@2.14.7
- io.github.aahl/mcp-aktoolsfastmcp@2.14.7
- io.github.aahl/mcp-notifyfastmcp@2.14.7
- io.github.aahl/mcp-vodsfastmcp@2.14.7
- io.github.ai-mcpower/mcpower-proxyfastmcp@2.13.0.2
- io.github.alex-feel/mcp-context-serverfastmcp@3.1.0
- io.github.ameyxd/petromcpfastmcp@2.14.7
- io.github.andreasd083/amazing-marvin-complete-mcpfastmcp@2.14.7
- io.github.ariffazil/arifos-mcpfastmcp@3.0.1
- io.github.aws/aws-mcpfastmcp@2.14.0
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- HighFastMCP: Missing Consent Verification in OAuth Proxy Callback Facilitates Confused Deputy Vulnerabilitiesfastmcp
- HighFastMCP OAuth Proxy token reuse across MCP serversfastmcp
- HighFastMCP updated to MCP 1.23+ due to CVE-2025-66416fastmcp
- HighFastMCP Auth Integration Allows for Confused Deputy Account Takeoverfastmcp
- MediumFastMCP: Post-transform component authorization is skipped on direct callsfastmcp, fastmcp, fastmcp-slim, fastmcp-slim
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.