CVE-2026-30307

Roo Code's command auto-approval module contains a critical OS command injection vulnerability that renders its whitelist security mechanism completely ineffective. The system relies on fragile regular expressions to parse command structures; while it attempts to intercept dangerous operations, it fails to account for standard Shell command substitution Roo Code (specifically$(...)and backticks ...). An attacker can construct a command such as git log --grep="$(malicious_command)", forcing Syntx to misidentify it as a safe git operation and automatically approve it. The underlying Shell prioritizes the execution of the malicious code injected within the arguments, resulting in Remote Code Execution without any user interaction.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*

History

06 Apr 2026, 15:57

Type Values Removed Values Added
References () https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/7 - () https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/7 - Third Party Advisory
References () https://roocode.com/ - () https://roocode.com/ - Product
CPE cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*
First Time Roocode
Roocode roo Code

01 Apr 2026, 18:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
CWE CWE-94

01 Apr 2026, 14:24

Type Values Removed Values Added
Summary
  • (es) El módulo de autoaprobación de comandos de Roo Code contiene una vulnerabilidad crítica de inyección de comandos del sistema operativo que hace que su mecanismo de seguridad de lista blanca sea completamente ineficaz. El sistema se basa en expresiones regulares frágiles para analizar estructuras de comandos; si bien intenta interceptar operaciones peligrosas, no tiene en cuenta la sustitución de comandos estándar de Shell Roo Code (específicamente $(...) y las comillas invertidas ...). Un atacante puede construir un comando como 'git log --grep="$(malicious_command)"', lo que obliga a Syntx a identificarlo erróneamente como una operación git segura y aprobarlo automáticamente. El Shell subyacente prioriza la ejecución del código malicioso inyectado dentro de los argumentos, lo que resulta en ejecución remota de código sin ninguna interacción del usuario.

30 Mar 2026, 20:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-30 20:16

Updated : 2026-04-06 15:57


NVD link : CVE-2026-30307

Mitre link : CVE-2026-30307

CVE.ORG link : CVE-2026-30307


JSON object : View

Products Affected

roocode

  • roo_code
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')