# CVE-2025-64340: FastMCP has a Command Injection vulnerability - Gemini CLI

- Severity: Medium 6.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-31T22:24:15.000Z
- Modified: 2026-09-10T03:51:00.538Z
- Also known as: GHSA-m8x7-r2rg-vh5g, PYSEC-2026-2475
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jlowin fastmcp: < 3.2.0; before 3.2.0
- fastmcp (PyPI): before 3.2.0

## Every score

- GitHub_M: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-m8x7-r2rg-vh5g> (exploit, patch, vendor-advisory, web)
- <https://github.com/PrefectHQ/fastmcp/pull/3522> (issue-tracking, patch, 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)

## Sources

- CVE List: [CVE-2025-64340](https://www.cve.org/CVERecord?id=CVE-2025-64340), CVE Terms of Use, modified 2026-04-03
- GitHub Advisory Database: [GHSA-m8x7-r2rg-vh5g](https://github.com/advisories/GHSA-m8x7-r2rg-vh5g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-64340](https://nvd.nist.gov/vuln/detail/CVE-2025-64340), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2475](https://osv.dev/vulnerability/PYSEC-2026-2475), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-64340 · Whole record: https://cve.day/CVE-2025-64340.json · Rebuilt by cve.day 2026-11-25T22:59:12.021Z
