CVE-2025-54377 Details
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.
A command injection vulnerability has been identified in Roo Code versions prior to 3.23.19. The issue arises because the application fails to properly validate line breaks in command input, which can lead to a bypass of the allow-list mechanism. This vulnerability allows for multi-line command injection, where only the first line of a command is considered during execution. As a result, attackers can inject additional commands on subsequent lines, potentially executing disallowed actions.
Users can update to Roo Code version 3.23.19 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-p278-52x9-cffx | CISA-ADP | ExploitVendor Advisory |
| https://github.com/RooCodeInc/Roo-Code/commit/9d434c2db9b20eb5c78b698cb2b0037cd2074534 | [email protected] | Patch |
| https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-p278-52x9-cffx | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| roocode roo code | < 3.23.19 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 11, 2025 | Initial Analysis | [email protected] |
| Jul 23, 2025 | New CVE Received | [email protected] |
| Jul 23, 2025 | CVE Modified | CISA-ADP |