7.8high
Roo Code Lacks Line Break Validation in its Command Execution Tool
- Severity
- 7.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.15% (higher than 67% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Roo Code is an AI-powered autonomous coding agent that lives in users' editors. In versions 3.23.18 and below, RooCode does not validate line breaks (\n) in its command input, allowing potential bypass of the allow-list mechanism. The project appears to lack parsing or validation logic to prevent multi-line command injection. When commands are evaluated for execution, only the first line or token may be considered, enabling attackers to smuggle additional commands in subsequent lines. This is fixed in version 3.23.19.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| RooCodeInc Roo-Code | < 3.23.19 | CVE List |
| roocode roo_code | before 3.23.19 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Roo Code is an AI-powered autonomous coding agent that lives in users' editors. In versions 3.23.18 and below, RooCode does not validate line breaks (\n) in its command input, allowing potential bypass of the allow-list mechanism. The project appears to lack parsing or validation logic to prevent multi-line command injection. When commands are evaluated for execution, only the first line or token may be considered, enabling attackers to smuggle additional commands in subsequent lines. This is fixed in version 3.23.19.
NVD (es)
Roo Code es un agente de codificación autónomo basado en IA que reside en los editores de los usuarios. En las versiones 3.23.18 y anteriores, RooCode no valida los saltos de línea (\n) en la entrada de comandos, lo que permite eludir el mecanismo de lista blanca. El proyecto parece carecer de lógica de análisis o validación para evitar la inyección de comandos multilínea. Al evaluar la ejecución de los comandos, solo se considera la primera línea o token, lo que permite a los atacantes introducir comandos adicionales en líneas posteriores. Esto se solucionó en la versión 3.23.19.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54377 changed 2025-07-23 | CVE Terms of Use |
| NVD | CVE-2025-54377 changed 2026-06-17 | Public domain |