Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MCP server with low-privilege credentials
-
DeliveryCall start_search tool with nested-quantifier regex pattern
-
ExploitJavaScript RegExp engine enters catastrophic backtracking on matched content
-
ExecutionServer CPU exhausted processing malicious pattern
-
ImpactSearch availability degraded for all concurrent users
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session with at least low-privilege access to the MCP server (confirmed by PR:L in the CVSS 4.0 vector) - the attacker must be a valid MCP client capable of invoking the start_search tool. No special non-default configuration is required; the search feature is a standard, enabled-by-default capability of DesktopCommanderMCP. The attacker must be able to supply an arbitrary string as the regex pattern argument to start_search. Exploitation is bounded by: the mandatory authenticated access requirement (PR:L), the low availability impact ceiling (VA:L - partial CPU exhaustion rather than full service termination), the absence of any confidentiality or integrity impact vector (VC:N/VI:N), and the fact that the denial of service is scoped to the search component rather than the entire MCP server process. Remote unauthenticated exploitation is not possible based on the CVSS PR:L designation. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P) produces a score of 2.1, accurately reflecting the narrow impact: network-reachable with low complexity and no user interaction, but gated behind authenticated low-privilege access (PR:L), and causing only low availability impact (VA:L) with zero confidentiality or integrity exposure. The E:P modifier confirms a publicly released proof-of-concept, which elevates urgency slightly above purely theoretical findings. The vulnerability is not listed in CISA KEV, indicating no confirmed broad exploitation. EPSS data was not provided in available intelligence. Real-world risk is genuinely low: an attacker must already have authenticated MCP client access, the worst-case outcome is partial CPU exhaustion rather than a full service outage, and there is no data exfiltration or code execution path. This is a legitimate finding but a low-priority patch target compared to higher-severity issues - organizations with multiple authenticated users sharing a DesktopCommanderMCP instance face the most meaningful residual risk. |
| Exploit ScenarioDerived | An authenticated low-privilege user with MCP client access to an unpatched DesktopCommanderMCP instance calls the start_search tool, supplying a crafted regex pattern such as (a+)+ as the search query. The server compiles the pattern directly into a JavaScript RegExp and evaluates it against file content containing a long string of 'a' characters followed by a non-matching character, triggering catastrophic backtracking in the Node.js regex engine. Server-side CPU spikes to near 100% for the duration, degrading or blocking search responses for all concurrent users. A public proof-of-concept demonstrating this behavior was disclosed alongside the VulDB report. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
ReDoS (Regular Expression Denial of Service) in wonderwhy-er DesktopCommanderMCP versions up to 0.2.38 allows authenticated remote attackers to exhaust server CPU by supplying crafted regex patterns with nested quantifiers to the start_search function in src/search-manager.ts. The unpatched code compiled user-controlled regex patterns directly into JavaScript RegExp objects without validating for catastrophic backtracking constructs, enabling partial availability degradation. A public proof-of-concept exploit exists (CVSS E:P), though the vulnerability is not listed in CISA KEV, and the CVSS 4.0 base score of 2.1 reflects its limited, low-availability impact.
RemediationAI
Upgrade to DesktopCommanderMCP v0.2.39, which resolves the vulnerability by introducing isSafeRegex() and buildSafeRegex() helper functions that validate patterns for nested quantifiers and overlapping alternations before RegExp compilation, falling back to escaped literal matching when dangerous constructs are detected. The patched release is available at https://github.com/wonderwhy-er/DesktopCommanderMCP/releases/tag/v0.2.39 and corresponds to commit 4ce845f8749b6a159b57b38dcc3357f7222a8078. If immediate upgrade is not feasible, restrict access to the MCP server's search tool to a minimal set of highly trusted authenticated users via network-level controls or MCP server configuration - since PR:L authentication is already required, tightening this to admin-only sessions or applying firewall rules that limit which clients can issue search calls substantially reduces residual exposure with minimal operational impact. Note that disabling the search feature entirely is also an option if it is not operationally critical, as this eliminates the attack surface without side effects to other MCP tool capabilities.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
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 grants Claude AI access to terminal commands and filesystem operations on a host desktop. The vulnerable component is src/search-manager.ts, which handles file-content and filename searching via the start_search tool. Prior to v0.2.39, the function accepted a user-supplied pattern string and compiled it directly into a JavaScript RegExp object with no pre-validation. JavaScript's regex engine employs backtracking, and certain pattern constructs - nested quantifiers such as (a+)+ or (a*)*, and overlapping alternations like (a|a)+ - exhibit exponential time complexity when matched against specially crafted input strings, a class of flaw described by CWE-400 (Uncontrolled Resource Consumption). The fix, visible in commit 4ce845f8749b6a159b57b38dcc3357f7222a8078, introduces isSafeRegex() to statically detect and reject dangerous nested-quantifier patterns, and buildSafeRegex() to fall back to escaped literal-string matching when such patterns are supplied, eliminating the backtracking exposure.
Know when the next one hits your stack
- 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:N/VI:N/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 security flaw has been discovered in wonderwhy-er DesktopCommanderMCP up to 0.2.38. This impacts an unknown function of the file src/search-manager.ts of the component start_search. Performing a manipulation of the argument SearchResult[] results in inefficient regular expression complexity. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. Upgrading to version 0.2.39 will fix this issue. The patch is named 4ce845f8749b6a159b57b38dcc3357f7222a8078. It is suggested to upgrade the affected component.
Articles & Coverage 1
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-34056
GHSA-r87g-78mx-3wg4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB