# CVE-2025-54377: Roo Code Lacks Line Break Validation in its Command Execution Tool

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.15%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-23T20:36:01.878Z
- Modified: 2026-06-17T09:39:56.990Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- RooCodeInc Roo-Code: < 3.23.19
- roocode roo_code: before 3.23.19

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-p278-52x9-cffx> (exploit, vendor-advisory)
- <https://github.com/RooCodeInc/Roo-Code/commit/9d434c2db9b20eb5c78b698cb2b0037cd2074534> (patch)

## Sources

- CVE List: [CVE-2025-54377](https://www.cve.org/CVERecord?id=CVE-2025-54377), CVE Terms of Use, modified 2025-07-23
- NVD: [CVE-2025-54377](https://nvd.nist.gov/vuln/detail/CVE-2025-54377), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54377 · Whole record: https://cve.day/CVE-2025-54377.json · Rebuilt by cve.day 2026-11-25T22:59:01.622Z
