CVE-2025-54377CWE-77

Roo Code Lacks Line Break Validation in its Command Execution Tool

High · published July 23, 2025

CVSS v3.1
7.8
EPSS
1%
Percentile
66.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01138 · 66.3th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2025-07-23T20:36Z
EPSS history
Timeline
  • 23 JUL 20:36Z
    Roo Code Lacks Line Break Validation in its Command Execution Tool
    cvelistv5