Description
Roo Code through 3.54.0 contains a command approval bypass vulnerability that allows attackers to run denied shell commands because parseCommandLine() treats ${ command; } substitutions as parameter expansions. Attackers using indirect prompt injection can embed denied commands inside an allowlisted command like echo to execute them without user approval on bash 5.3+ or ksh93.
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#L74-L79 technical-description
- VulnCheck Advisory: Roo-Code through 3.54.0 Auto-Approve Bypass via Funsub Command Substitution third-party-advisory