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.
Severity (CVSS)
| Base score | 7.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-184 — Incomplete List of Disallowed Inputs
Affected products
| Vendor | Product | Versions |
|---|---|---|
| RooCodeInc | Roo-Code | 0 to <=3.54.0 |
References
- https://github.com/geo-chen/oss/blob/main/Roo-Code.md (technical-description exploit)
- https://www.vulncheck.com/advisories/roo-code-command-injection-via-parameter-expansion-parsing (third-party-advisory)
Generated from the official CVE List on 21 Jul 2026 07:01 UTC.