Description
Roo Code through 3.54.0 contains a command approval bypass vulnerability in parseCommandLine() that allows attackers to auto-approve arbitrary shell commands by placing a command substitution in command position. Attackers using indirect prompt injection can submit commands like $(echo touch /tmp/x) that pass the echo allowlist check, causing the shell to execute the output without user approval.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| RooCodeInc | Roo-Code | ≤ 3.54.0 | — |
References
- Researcher Disclosure third-party-advisory
- https://github.com/RooCodeInc/Roo-Code/blob/v3.54.0/src/shared/parse-command.ts#L100-L172 technical-description
- VulnCheck Advisory: Roo-Code through 3.54.0 Auto-Approve Bypass via Command Substitution at Command Position third-party-advisory