CVE-2026-63108 Details
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.
A command injection vulnerability has been identified in Roo Code versions through 3.54.0. This vulnerability resides in the auto-approve execute feature, allowing attackers to bypass allowlist and denylist enforcement by nesting command substitutions within parameter expansion defaults. The issue arises because the command parser replaces parameter expansions with opaque placeholders before extracting command substitutions. This sequence causes the 'containsDangerousSubstitution' guard to overlook nested payloads, which are then auto-approved based on the outer allowlisted command prefix. The approved commands are executed by the shell via 'execa', enabling arbitrary command execution on the developer's machine within the agent's auto-run privileges.
To address this vulnerability, extract and validate command substitutions before replacing parameter expansions with placeholders. Additionally, recurse into the contents of parameter expansions to check for nested command substitutions. Alternatively, the 'containsDangerousSubstitution' guard can be extended to flag any command substitution or backtick usage within a parameter expansion, ensuring that such commands are denied execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 20, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/geo-chen/oss/blob/main/Roo-Code.md | [email protected] | ExploitTechnical Analysis |
| https://www.vulncheck.com/advisories/roo-code-command-injection-via-parameter-expansion-parsing | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Roo Code | <= 3.54.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 20, 2026 | New CVE Received | [email protected] |
Volerion