Description
Roo Code through 3.54.0 contains a command approval bypass vulnerability that allows attackers to auto-approve denied shell commands by abusing quote-masking regex in parseCommandLine(). Attackers can use indirect prompt injection with escaped or single-quoted double quotes to hide command separators behind allowlisted prefixes like echo, executing commands 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#L111-L115 technical-description
- VulnCheck Advisory: Roo-Code through 3.54.0 Auto-Approve Bypass via Quote Masking Desynchronization third-party-advisory