Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted network request with traversal payload
-
ExploitApplyPatchTool receives unsanitized path input
-
Executionpath.resolve resolves traversal to out-of-scope filesystem location
-
ImpactRead or write arbitrary files as the running process user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The ApplyPatchTool feature must be active and reachable over the network, which reflects Roo-Code's intended operation as a network-accessible AI coding assistant. The CVSS 4.0 vector PR:N confirms no authentication is required. UI:P indicates some form of passive user interaction is involved (e.g., a user must trigger a patch operation or open a session), limiting fully autonomous exploitation. Exploitation requires that path traversal sequences in patch input reach the path.resolve call without prior sanitization - no special non-default configuration is needed beyond the product simply being installed and running. Limiting factors include the requirement for passive user interaction (UI:P) and low rather than high impact metrics, meaning exploitation yields partial file access rather than full system compromise. The product being end-of-life limits its current deployment footprint, reducing the effective attack surface. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects network reachability with low complexity and no privileges, but the impact is capped at Low across confidentiality, integrity, and availability - consistent with a path traversal that allows partial file access rather than full remote code execution. The E:P (Proof of Concept) supplemental metric acknowledges the published exploit. EPSS data is not provided, but the absence of a CISA KEV listing suggests no confirmed widespread active exploitation at time of analysis. The most material risk signal here is operational: the vendor has explicitly abandoned the project, so this vulnerability will never receive a fix. Organizations running Roo-Code face permanent, unpatched exposure. Despite the moderate CVSS score, the combination of a public exploit, network-reachable attack surface, no authentication requirement, and a permanent no-fix status elevates real-world urgency for any deployment still in use. |
| Exploit ScenarioDerived | An unauthenticated remote attacker sends a crafted patch request to a running Roo-Code instance containing directory traversal sequences in the file path parameter processed by ApplyPatchTool. The path.resolve call resolves the traversal sequences without sanitization, allowing the attacker to read sensitive files (e.g., ~/.ssh/id_rsa, environment files) or write arbitrary content to locations outside the project directory. A proof-of-concept demonstrating this technique is publicly available on GitHub Gist. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Path traversal in RooCodeInc Roo-Code through version 3.51.1 allows remote unauthenticated attackers to read and write files outside the intended working directory by manipulating input processed by the path.resolve function in ApplyPatchTool.ts. The vendor has confirmed they archived the repository and discontinued all support, meaning no patch will ever be released. Publicly available exploit code exists via a GitHub Gist, and no vendor-released patch identified at time of analysis - organizations still running this tool are permanently exposed.
RemediationAI
No vendor-released patch identified at time of analysis - the vendor has archived the Roo-Code repository and explicitly states they no longer support it. The only authoritative remediation is to immediately uninstall or decommission all instances of Roo-Code. If removal is operationally infeasible in the short term, restrict network access to the service at the host or perimeter firewall level to reduce exposure from the AV:N attack vector, though this is a temporary measure with the trade-off of not eliminating the underlying flaw. Block or sandbox file system access for the Roo-Code process using OS-level controls (e.g., seccomp, AppArmor, or container namespacing) to limit the blast radius of path traversal exploitation. The published proof-of-concept at https://gist.github.com/tchen200311/c5b8eeb9b7f8e4e6f19e7432d7bb1e31 should be used to verify exposure. Migration to an actively maintained alternative is the only long-term resolution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Roo-Code is a Node.js-based AI coding assistant. The vulnerable component is ApplyPatchTool (src/core/tools/ApplyPatchTool.ts), which uses Node.js's path.resolve to construct file paths when applying code patches. CWE-22 (Path Traversal) arises when user-controlled path segments containing directory traversal sequences (e.g., ../ or URL-encoded equivalents) are passed to path.resolve without sanitization or boundary enforcement. Because path.resolve computes an absolute path from its arguments sequentially, crafted input can resolve to locations entirely outside the intended project directory. The affected CPE cpe:2.3:a:roocodeinc:roo-code:*:*:*:*:*:*:*:* covers all releases through 3.51.1 with no upper-bound fix version.
Know when Roo Code 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:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable with no privileges, but passive user interaction required (UI:R per 4.0 UI:P); limited low-impact read/write, no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A flaw has been found in RooCodeInc Roo-Code up to 3.51.1. This issue affects the function path.resolve of the file src/core/tools/ApplyPatchTool.ts of the component ApplyPatchTool. This manipulation causes path traversal. It is possible to initiate the attack remotely. The exploit has been published and may be used. Multiple isses were reported to the vendor beforehand. They explain, that "they all apply to Roo Code, a project we no longer support - the repository was archived a while ago, and we don't encourage anyone to use it." This vulnerability only affects products that are no longer supported by the maintainer.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Arbitrary command execution in Roo Code (the open-source AI coding agent) through version 3.54.0 lets attackers slip pas
Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Rated critical severity (CVSS 9.9), this
Roo Code is an AI-powered autonomous coding agent. Prior to 3.22.6, if the victim had "Write" auto-approved, an attacker
Roo Code is an AI-powered autonomous coding agent. The project-specific MCP configuration for the Roo Code agent is stor
Command approval bypass in Roo Code through 3.54.0 allows unauthenticated remote attackers to execute shell commands tha
Command-approval bypass in Roo Code through 3.54.0 lets attacker-influenced input cause the agent to execute arbitrary s
Auto-approval command filtering in Roo Code through 3.54.0 can be bypassed, letting an attacker run commands that should
Command approval bypass in Roo Code through 3.54.0 lets an attacker get denied shell commands auto-approved and executed
Roo Code through 3.54.0 can execute shell commands that its command auto-approval allowlist is meant to deny, because ge
Cleartext transmission of OAuth credentials in RooCodeInc Roo-Code up to version 3.51.1 exposes sensitive OAuth tokens t
Code injection in RooCodeInc Roo-Code through version 3.51.1 allows remote attackers to execute arbitrary code via the E
Code injection in RooCodeInc Roo-Code up to version 3.51.1 allows a remote low-privileged attacker to execute injected c
EUVD-2026-67286
GHSA-pjx2-9jx7-x89r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB