Description
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.
Published: 2026-07-20
Score: 7.7 High
EPSS: 1.9% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Roo Code up to version 3.54.0 contains a command injection flaw in its auto‑approve execute feature. The parser replaces parameter expansions with placeholders before extracting command substitutions, causing the containsDangerousSubstitution guard to miss nested payloads. The outer command, which is allowed by an allowlist, is then executed through execa, permitting an attacker to run arbitrary shell commands on the host running Roo Code. The weakness is a command injection (CWE‑184).

Affected Systems

All installations of RooCodeInc’s Roo‑Code product at or below version 3.54.0 are affected, provided the auto‑approve execute feature is enabled. The vulnerability exists in the command parser and execa wrapper included in the Roo‑Code codebase.

Risk and Exploitability

The CVSS base score of 7.7 signals a high‑impact vulnerability. The EPSS score of 2% indicates a modest but non‑zero likelihood of exploitation, and the flaw is not catalogued in CISA’s KEV. Based on the description, it is inferred that an attacker needs the ability to provide input to the vulnerable auto‑approve execute feature, which may require authenticated or privileged access depending on the deployment. The injection can occur when that input reaches the parser, allowing the attacker to execute arbitrary commands on the host.

Generated by OpenCVE AI on July 30, 2026 at 18:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a version of Roo Code newer than 3.54.0 where the command injection flaw is fixed.
  • If an upgrade cannot be applied immediately, disable or remove the auto‑approve execute feature to close the attack surface.
  • Implement input validation that rejects nested command substitutions within parameter expansion defaults before they reach execa, ensuring that only explicitly allowed commands are executed.

Generated by OpenCVE AI on July 30, 2026 at 18:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Roocode roo Code
CPEs cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*
Vendors & Products Roocode roo Code

Mon, 20 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Roocode
Roocode roo-code
Vendors & Products Roocode
Roocode roo-code

Mon, 20 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 18:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Roo Code 3.54.0 Command Injection via Parameter Expansion Parsing
Weaknesses CWE-184
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': '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'}


Subscriptions

Roocode Roo-code Roo Code
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:29.570Z

Reserved: 2026-07-15T15:45:44.602Z

Link: CVE-2026-63108

cve-icon Vulnrichment

Updated: 2026-07-20T21:42:41.285Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:45:06Z

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs