Skip to main content

Roo Code CVE-2026-63108

| EUVDEUVD-2026-46065 HIGH
Incomplete List of Disallowed Inputs (CWE-184)
2026-07-20 VulnCheck GHSA-5xxh-cfjg-qm65
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Plant nested-substitution payload in agent-visible content
  2. Delivery
    Victim's Roo Code proposes allowlisted-prefix command
  3. Exploit
    Parser masks parameter expansion, guard misses payload
  4. Execution
    Auto-approve clears outer command
  5. Persist
    execa runs hidden substitution
  6. Impact
    Arbitrary code execution on developer host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires the target to be running Roo Code at or below 3.54.0 with the auto-approve execute feature enabled and at least one allowlisted command prefix configured; the payload must nest a command substitution ($(...) or backticks) inside a shell parameter-expansion default (e.g. ${x:-$(...)}) so the outer prefix matches the allowlist while containsDangerousSubstitution misses the inner substitution. Limiting factors: the victim must have auto-approve enabled (a non-default, opt-in convenience mode) with a permissive allowlist, and per CVSS UI:P the malicious command must be delivered into the agent's execution flow through content the user causes the AI to act on rather than triggered directly by the attacker; without auto-approve enabled the command surfaces for manual review and the bypass has no effect.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H, score 7.7) captures a network-reachable path to full confidentiality/integrity/availability compromise but tempers it with AT:P (a specific attack requirement) and UI:P (passive user interaction), meaning exploitation is not turnkey. The real gating condition is that the victim must have the auto-approve execute feature enabled with allowlisted command prefixes, and the malicious command must reach the agent's execution path, typically via attacker-influenced content the AI acts on. A public PoC and write-up exist, which raises practical risk, but the CVE is not in CISA KEV and no EPSS score was provided, so there is no evidence of widespread automated exploitation, suggesting a credible, demonstrated technique rather than a mass-exploited bug. The AV:N designation reflects that malicious input can arrive remotely, yet code execution still lands on the local developer machine and depends on user-side configuration, so a blanket 'unauthenticated internet RCE' framing would overstate it.

Exploit ScenarioDerived

A developer runs Roo Code with auto-approve execute enabled and a benign prefix such as 'echo' allowlisted, then directs it to work on an attacker-influenced repository, issue, or prompt. The agent is steered to emit an allowlisted-prefix command carrying a nested command substitution inside a parameter-expansion default; the guard approves the harmless-looking outer command while the shell expands and runs the hidden payload, yielding arbitrary code execution on the developer's machine. A public PoC demonstrating the parameter-expansion bypass is available.

Monitor Track and reassess. Why: Vendor states no customer action required.
No patch listed yet 1.9% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 20, 2026

Arbitrary command execution in Roo Code (the open-source AI coding agent) through version 3.54.0 lets attackers slip past the auto-approve execute feature's allowlist/denylist by hiding command substitutions inside shell parameter-expansion defaults. Because the parser replaces parameter expansions with opaque placeholders before scanning for dangerous substitutions, a payload built from an allowlisted prefix carrying a nested $(...) is judged safe, auto-approved on the outer command, and executed by the shell via execa. A public PoC and technical write-up exist (reported by VulnCheck); there is no confirmed active exploitation (not in CISA KEV) and no EPSS score was provided.

RemediationAI

Upgrade to a Roo Code release later than 3.54.0 that corrects the parse-command.ts placeholder ordering; however, the available data does not name a confirmed fixed version, so verify the patched release directly against the VulnCheck advisory (https://www.vulncheck.com/advisories/roo-code-command-injection-via-parameter-expansion-parsing) before relying on an upgrade - upstream fix status is not independently confirmed from the provided data. As immediate compensating controls, disable the auto-approve execute feature so every proposed command requires explicit human review (trade-off: loses the automation convenience the feature provides), or empty/severely tighten the command allowlist so no prefix is auto-approved (trade-off: more approval prompts and slower workflows). Additionally, run Roo Code only against trusted repositories and prompts to reduce the chance of attacker-controlled content reaching the executor, and use the write-up at https://github.com/geo-chen/oss/blob/main/Roo-Code.md to build detection for nested command-substitution patterns.

Affected VersionsENISA

Roo-Code 0 ≤3.54.0

Affected Packages

euvd roo_code no fix

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 VS Code AI coding-assistant extension that can propose and run shell commands, gated by a user-configurable allowlist/denylist in its auto-approve execute feature. The flaw lives in parse-command.ts: to normalize a command line it first substitutes shell parameter expansions (e.g. ${VAR:-default}) with opaque placeholders, then separately extracts command substitutions ($(...) and backticks) for its containsDangerousSubstitution guard. Because the placeholder step runs first, any command substitution nested inside a parameter-expansion default is masked and never seen by the guard, so only the benign outer command prefix is evaluated for approval. This is a textbook CWE-184 (Incomplete List of Disallowed Inputs / incomplete denylist): the safety check operates on a sanitized representation that no longer reflects what the shell, via execa, will ultimately expand and execute.

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

Vendor (VulnCheck) PRIMARY 7.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

AC:H and UI:R because exploitation needs auto-approve enabled with an allowlist plus user-driven agent action; PR:N as no victim-system authentication is required, with full local C/I/A impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

Roo Code through 3.54.0 contains a command injection vulnerability in the auto-approve execute feature that allows attackers to bypass allowlist/denylist enforcement by nesting command substitutions inside parameter expansion defaults. The command parser in parse-command.ts replaces parameter expansions with opaque placeholders before extracting command substitutions, causing the containsDangerousSubstitution guard to miss nested payloads, which are then auto-approved based on the outer allowlisted command prefix and executed by the shell via execa, enabling arbitrary command execution.

Executive ViewAI

Why It Matters

Roo Code AI coding agent through version 3.54.0 is vulnerable to command execution attacks that bypass built-in safety mechanisms, potentially compromising code integrity and system security across development and deployment pipelines. Organizations deploying this tool face risk to developer workstations and automated CI/CD systems. A working exploit is publicly available with no vendor patch currently available.

Business Impact: High
Compensating Controls

Disable the auto-approve execute feature and require manual approval for all command execution; restrict Roo Code deployment to isolated or sandboxed environments with minimal outbound network access; implement comprehensive logging and monitoring of all command execution attempts; enforce mandatory code review processes for all Roo Code-generated output; consider restricting usage to offline or air-gapped development environments until a patch is available.

Threat Intelligence Overview

EPSS Score
1.9%
Top 22% exploitable
Prevalence
Medium
popular open-source AI coding-agent VS Code extension, developer-tool footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC Yes
EPSS 1.9%
Patch available No
Active threat No
Deciding rule
Vendor states no customer action required
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +38
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.

CVE-2025-58371 CRITICAL
9.9 Sep 05

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Rated critical severity (CVSS 9.9), this

CVE-2025-65946 HIGH
8.1 Nov 21

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Rated high severity (CVSS 8.1), this vul

CVE-2025-53536 HIGH
8.1 Jul 07

Roo Code is an AI-powered autonomous coding agent. Prior to 3.22.6, if the victim had "Write" auto-approved, an attacker

CVE-2025-53098 HIGH
8.1 Jun 27

Roo Code is an AI-powered autonomous coding agent. The project-specific MCP configuration for the Roo Code agent is stor

CVE-2026-110204 HIGH
7.7 Oct 13

Command approval bypass in Roo Code through 3.54.0 allows unauthenticated remote attackers to execute shell commands tha

CVE-2026-110206 HIGH
7.7 Oct 13

Command-approval bypass in Roo Code through 3.54.0 lets attacker-influenced input cause the agent to execute arbitrary s

CVE-2026-110205 HIGH
7.7 Oct 13

Auto-approval command filtering in Roo Code through 3.54.0 can be bypassed, letting an attacker run commands that should

CVE-2026-110203 HIGH
7.7 Oct 13

Command approval bypass in Roo Code through 3.54.0 lets an attacker get denied shell commands auto-approved and executed

CVE-2026-110202 HIGH
7.7 Oct 13

Roo Code through 3.54.0 can execute shell commands that its command auto-approval allowlist is meant to deny, because ge

CVE-2026-81836 LOW POC
2.9 Aug 27

Cleartext transmission of OAuth credentials in RooCodeInc Roo-Code up to version 3.51.1 exposes sensitive OAuth tokens t

CVE-2026-81837 LOW POC
2.1 Aug 27

Path traversal in RooCodeInc Roo-Code through version 3.51.1 allows remote unauthenticated attackers to read and write f

CVE-2026-81834 LOW POC
2.1 Aug 27

Code injection in RooCodeInc Roo-Code through version 3.51.1 allows remote attackers to execute arbitrary code via the E

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