Description
Roo Code through 3.54.0 contains a command approval bypass vulnerability in getCommandDecision() that allows attackers to auto-approve denied shell commands by prefixing them with a bare >& redirect. Attackers using indirect prompt injection can make the allowlist match a redirect target like echo while the shell runs the denied command on the developer machine.
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/core/auto-approval/commands.ts#L265-L274 technical-description
- VulnCheck Advisory: Roo-Code through 3.54.0 Auto-Approve Bypass via Redirect Operator Stripping third-party-advisory