Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-30307: Roo Code command auto-approval bypass through shell command substitution

Identifier
CVE-2026-30307
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Roo Code's command auto-approval module, which uses regular expressions to check commands against a whitelist, fails to account for shell command substitution via $(...) and backticks. An attacker can craft a command such as git log --grep="$(malicious_command)" that the module misidentifies as a safe git operation and approves automatically. The shell then executes the injected code, resulting in Remote Code Execution without any user interaction.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.