CVE-2025-64340
Medium · 6.7CVSS
6.7
EPSS
0.7%
Published
Apr 3, 2026
CISA due date
—
Cloudanix analysis
A setup tool in a popular software framework can let attackers run their own commands on Windows machines if certain names are used during installation.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- High
- Impact
- Full Compromise
- Component
- Library
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Command injection on Windows when server names containing shell metacharacters are passed to fastmcp install claude-code or fastmcp install gemini-cli, because subprocess.run lists are flattened through cmd.exe wrappers that interpret the metacharacters.
Why it matters to the business
Attackers can execute arbitrary commands on developer or build systems, enabling unauthorized code execution, data access, or persistence that disrupts operations and requires incident response.
How an attack unfolds
An attacker crafts a server name containing metacharacters such as '&' and supplies it to one of the affected fastmcp install commands; on Windows the .cmd wrapper causes cmd.exe to interpret the name as part of the command line, resulting in injected commands being executed.
How to fix it
Upgrade FastMCP to version 3.2.0 or later on all affected systems; avoid using the install commands with untrusted server names until the upgrade is complete.
How to confirm the fix worked
Confirm the installed FastMCP package version is 3.2.0 or higher; attempt reproduction with a test server name containing '&' and verify that no extraneous commands execute.
Typical attack path
- Locate a Windows system using FastMCP prior to 3.2.0
- Create a malicious server name containing shell metacharacters
- Invoke fastmcp install claude-code or fastmcp install gemini-cli with the crafted name
- Trigger command execution through the cmd.exe wrapper path
How to detect it
Search process creation and command-line logs for fastmcp install invocations that contain metacharacters in server name arguments; correlate with unexpected child processes launched by cmd.exe during those operations.
What your security team should do
- Prioritize upgrade of all FastMCP installations to 3.2.0 within the next maintenance window
- Audit scripts and CI pipelines that invoke fastmcp install commands
- Add allow-listing or sanitization for server names supplied to install functions
- Review Windows event logs and process creation telemetry for suspicious cmd.exe invocations originating from fastmcp
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-62853 ThingLinks is an enterprise IoT platform. CWE-78
- CVE-2026-119335 Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing… CWE-78
- CVE-2026-116241 pgAdmin 4's Import/Export Data tool wraps a user's query export in a psql \copy (...) TO… CWE-78
- CVE-2026-119713 Paperclip 2026.403.0 before 2026.416.0 contains a remote code execution vulnerability… CWE-78
- CVE-2026-119288 Zuke is a code-first, strongly typed build automation system for Deno. CWE-78
- CVE-2026-118238 The Tenda W18E web management server is vulnerable to OS command injection via the… CWE-78
- CVE-2026-91913 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-78
- CVE-2026-118992 CallBackery versions before 0.62.0 for Perl allow OS command execution via sqlite3 shell… CWE-78