Roo Code Remote Code Execution Vulnerability via Zsh Command Validation
Vulnerability
A remote code execution vulnerability has been identified in Roo Code versions prior to 3.26.7. This issue arises from a validation error that allowed Roo to automatically execute commands not adhering to the specified allow list prefixes. The vulnerability exploits Zsh command features, particularly glob qualifiers, to execute arbitrary commands.
Impact
Exploitation of this vulnerability allows for arbitrary code execution on the user's system.
Reproduction
The vulnerability can be reproduced by using Zsh glob qualifiers that include command execution, such as '(e:whoami:)', in a command that Roo is allowed to execute. Roo will automatically execute the injected command, bypassing the validation that is supposed to prevent such actions.
Remediation
Users can upgrade to Roo Code version 3.26.7 or later to address this vulnerability.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
