DesktopCommanderMCP
CVE-2025-11490
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to MCP service
-
DeliveryCraft request with absolute path containing shell metacharacters
-
ExploitSubmit to extractBaseCommand function
-
InstallFunction parses path without sanitization
-
C2Inject shell separator (semicolon/pipe)
-
ExecuteExecute attacker's command
-
ImpactRetrieve output or sideeffect
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions: (1) the attacker must be an authenticated user with credentials to access the DesktopCommanderMCP service (PR:L in CVSS vector), (2) the attack vector must use the Absolute Path Handler component's extractBaseCommand function specifically, meaning the request must pass absolute file paths rather than simple command names, and (3) the AI model or user must be induced to request command execution with absolute paths-a non-default workflow pattern the vendor notes does not align with typical usage where AI models choose simple command names autonomously. Exploitation is NOT possible against default configurations where the model executes commands with simple names and does not receive requests for absolute-path-based command invocation. Authentication is mandatory; unauthenticated remote exploitation is not feasible. The limiting factor is the combination of required authentication and non-standard attack initiation pattern-an attacker cannot exploit this in standard deployment scenarios where the MCP server is only accessed by legitimate AI agents using normal command execution patterns. |
| Impact | This vulnerability presents minimal real-world risk despite command injection severity, due to converging limiting factors. CVSS 4.0 vector shows AV:N (network-accessible) but critically requires PR:L (authenticated user privileges), limiting exposure to users with valid credentials. EPSS score of 0.15% (35th percentile) confirms low exploitation probability in the wild, suggesting this is not actively pursued outside proof-of-concept scenarios. No CISA KEV listing indicates no confirmed active exploitation despite public POC availability. The vendor's own assessment is candid: the attack requires deliberate user action to override normal AI behavior patterns (asking the model to use absolute paths when it normally uses simple commands), which is not observed in actual workflows. Attack complexity is low (AC:L) but the prerequisite authenticated access requirement and non-default attack vector (requiring user to specifically request command-path-based execution) sharply reduce practical risk. The CVSS impact scope shows only low confidentiality, integrity, and availability loss (VC:L/VI:L/VA:L), not critical system compromise. This is a legitimate security defect with clear remediation path, but exploitability in production environments remains unconfirmed. |
| Exploit ScenarioDerived | An authenticated attacker with access to the DesktopCommanderMCP server sends a crafted API request containing an absolute file path with embedded shell metacharacters (e.g., '/bin/ls; id; #') to the extractBaseCommand function. The function fails to sanitize the input and passes the malicious string to OS command execution, allowing the attacker to inject and execute arbitrary commands such as exfiltrating data, modifying files, or establishing reverse shells. Publicly available POC code on GitHub demonstrates this attack pattern. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
OS command injection in DesktopCommanderMCP up to version 0.2.13 allows authenticated remote attackers to execute arbitrary operating system commands via the extractBaseCommand function in src/command-manager.ts when processing absolute file paths. The vulnerability requires authentication and has limited real-world impact scope, reflected in a low CVSS score of 2.1 and EPSS of 0.15%, though publicly available exploit code exists and the vendor acknowledges the issue remains unfixed pending real-world incident reports.
RemediationAI
No vendor-released patch is available at time of analysis. The primary mitigation is to upgrade to a version newer than 0.2.13 once available, or restrict authenticated access to DesktopCommanderMCP to only trusted users who will not attempt absolute-path-based command injection. In the interim, apply network-level access controls to limit who can authenticate to the MCP server, deploy input validation rules at the API gateway to reject requests containing shell metacharacters in path parameters, or disable the absolute path handler component if not required for operational workflows. Alternatively, run DesktopCommanderMCP in a restricted OS user context or sandboxed container with minimal privileges to limit command execution scope. Monitor for GitHub repository updates or tagged releases from the wonderwhy-er project for security patches.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DesktopCommanderMCP is a Model Context Protocol (MCP) server that executes system commands on behalf of AI models. The vulnerability exists in the Absolute Path Handler component's extractBaseCommand function (src/command-manager.ts), which fails to properly sanitize or validate absolute file paths before using them in OS command execution. CWE-77 (Improper Neutralization of Special Elements used in a Command) indicates the root cause is insufficient input validation when constructing shell commands from user-supplied or AI-generated paths. The vulnerability allows injection of shell metacharacters or command separators (semicolon, pipe, ampersand, backticks, etc.) into what should be a simple command name extraction operation.
Know when Desktopcommandermcp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability has been found in wonderwhy-er DesktopCommanderMCP up to 0.2.13. The affected element is the function extractBaseCommand of the file src/command-manager.ts of the component Absolute Path Handler. Such manipulation leads to os command injection. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The vendor explains: "The usual use case is that AI is asked to do something, picks commands itself, and typically uses simple command names without absolute paths. It's curious why a user would ask the model to bypass restrictions this way. (...) This could potentially be a problem, but we are yet to hear reports of this being an issue in actual workflows. We'll leave this issue open for situations where people may report this as a problem for the long term."
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Affected Products (CPE)CVE.org
More in Desktopcommandermcp
View allOS command injection in DesktopCommanderMCP up to version 0.2.13 allows authenticated remote attackers to execute arbitr
Symlink following in DesktopCommanderMCP up to version 0.2.13 allows local authenticated attackers to read files outside
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB