CVE-2025-57771CWE-78

Roo-Code potential remote code execution via auto-execute command parsing flaw

High · published August 22, 2025

CVSS v3.1
8.1
EPSS
1%
Percentile
54.1
In the wild
Unconfirmed
What it is

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. In versions prior to 3.25.5, Roo-Code fails to properly handle process substitution and single ampersand characters in the command parsing logic for auto-execute commands. If a user has enabled auto-approved execution for a command such as ls, an attacker who can submit crafted prompts to the agent may inject arbitrary commands to be executed alongside the intended command. Exploitation requires attacker access to submit prompts and for the user to have enabled auto-approved command execution, which is disabled by default. This vulnerability could allow an attacker to execute arbitrary code. The issue is fixed in version 3.25.5.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00747 · 54.1th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-08-22T16:35Z
EPSS history
Timeline
  • 22 AUG 16:35Z
    Roo-Code potential remote code execution via auto-execute command parsing flaw
    cvelistv5