CVE-2025-64340
HIGH 7.8CVSS 3.1FastMCP has a Command Injection vulnerability - Gemini CLI
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.
- Published
- 3 Apr 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-m8x7-r2rg-vh5gPYSEC-2026-2475
- Sources
- NVDJSONOSV GHSA-m8x7-r2rg-vh5gJSONOSV PYSEC-2026-2475JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jlowin | fastmcpcpe:2.3:a:jlowin:fastmcp:*:*:*:*:*:*:*:* |
< 3.2.0 | 3.2.0 |
| OSV | PyPI | fastmcp | < 3.2.0 | 3.2.0 |
References
- https://github.com/PrefectHQ/fastmcp/pull/3522 · Issue Tracking, Patch, WEB
- https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-m8x7-r2rg-vh5g · Exploit, Patch, Vendor Advisory, WEB
- https://github.com/jlowin/fastmcp/security/advisories/GHSA-m8x7-r2rg-vh5g · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-64340 · ADVISORY
- https://github.com/PrefectHQ/fastmcp · PACKAGE
- https://pypi.org/project/fastmcp · PACKAGE
- https://github.com/advisories/GHSA-m8x7-r2rg-vh5g · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 3 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Mar 2026)