Skip to main content

DesktopCommanderMCP CVE-2025-11490

LOW
Command Injection (CWE-77)
2025-10-08 cna@vuldb.com
2.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to MCP service
  2. Delivery
    Craft request with absolute path containing shell metacharacters
  3. Exploit
    Submit to extractBaseCommand function
  4. Install
    Function parses path without sanitization
  5. C2
    Inject shell separator (semicolon/pipe)
  6. Execute
    Execute attacker's command
  7. Impact
    Retrieve 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (vuldb) PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 65% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Affected Products (CPE)CVE.org

cpe:2.3:a:wonderwhy-er:desktopcommandermcp:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy