CVE-2025-57771: Roo-Code potential remote code execution via auto-execute command parsing flaw
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-57771?
CVE-2025-57771 is classified as a moderate severity vulnerability due to its potential impact on the integrity of the command parsing logic.
How do I fix CVE-2025-57771?
To fix CVE-2025-57771, users should update Roo-Code to version 3.25.5 or later.
What types of software are affected by CVE-2025-57771?
CVE-2025-57771 affects all versions of Roo-Code prior to 3.25.5.
What is the risk of exploiting CVE-2025-57771?
Exploiting CVE-2025-57771 can allow unauthorized command execution due to improper handling of process substitution in auto-execute commands.
Is there a workaround for CVE-2025-57771 if I cannot update?
Currently, there are no recommended workarounds for CVE-2025-57771, so updating to the latest version is the best mitigation.