Roo Code through 3.54.0 contains a command approval bypass vulnerability in parseCommandLine() that discards command substitutions placed next to * or ? glob characters. Attackers using indirect prompt injection can craft commands like echo *$(...) that match allowlisted prefixes, executing denied commands without user approval when auto-approval is enabled.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/7rah/oss-cve/blob/6adb836d24ca446fd168c3acdc4c170beb77fe0f/roocode-glob-token.md Exploit, Mitigation, Third Party Advisory
- https://github.com/7rah/oss-cve/blob/6adb836d24ca446fd168c3acdc4c170beb77fe0f/roocode-glob-token.md Exploit, Mitigation, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 4
- StatusAnalyzed → ModifiedNVD modified 2026-10-26 20:17
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-15 19:03
- StatusUndergoing Analysis → AnalyzedNVD modified 2026-10-15 19:03
- First seenCVSS 7.7NVD modified 2026-10-13 19:30
Affected (CPE criteria) 1
cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*
References 4
- https://github.com/7rah/oss-cve/blob/6adb836d24ca446fd168c3acdc4c170beb77fe0f/roocode-glob-token.md Exploit, Mitigation, Third Party Advisory
- https://github.com/RooCodeInc/Roo-Code/blob/v3.54.0/src/shared/parse-command.ts#L148-L172 Product
- https://www.vulncheck.com/advisories/roo-code-through-3.54.0-auto-approve-bypass-via-glob-token-discarding-command-substitution Third Party Advisory
- https://github.com/7rah/oss-cve/blob/6adb836d24ca446fd168c3acdc4c170beb77fe0f/roocode-glob-token.md Exploit, Mitigation, Third Party Advisory