CVE-2025-57771 Roo-Code potential remote code execution via auto-execute command parsing flaw
Attackers can execute arbitrary code via crafted prompts if auto-approved command execution is enabled in Roo-Code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-57771?
CVE-2025-57771 is a high-severity command injection vulnerability in RooCodeInc Roo-Code, published on 22 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-78
Which versions are affected by CVE-2025-57771?
How do I fix CVE-2025-57771?
No fix has been published for CVE-2025-57771 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-57771 being exploited?
There is no known exploitation of CVE-2025-57771 in the wild and no public exploit code.
Sources
Also known as GHSA-wrh9-463x-7wvv.