Roo Code 3.54.0 Command Injection via Parameter Expansion Parsing
41Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 7.7epss 1.9%
exploitation probability
1.9%top 22% of all CVEs
observed exploitation
nono source reports it
1 public exploit(s)
Roo Code through 3.54.0 contains a command injection vulnerability in the auto-approve execute feature that allows attackers to bypass allowlist/denylist enforcement by nesting command substitutions inside parameter expansion defaults. The command parser in parse-command.ts replaces parameter expansions with opaque placeholders before extracting command substitutions, causing the containsDangerousSubstitution guard to miss nested payloads, which are then auto-approved based on the outer allowlisted command prefix and executed by the shell via execa, enabling arbitrary command execution.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected products
RooCodeInc · Roo-Codepublic PoCs found — 1
cve_referencegithub.com/geo-chen/oss/blob/main/Roo-Code.mdunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.