CVE-2025-57771

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

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.

Category

8.1
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.07%
Affected: RooCodeInc Roo-Code
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-57771?
CVE-2025-57771 has been scored as a high severity vulnerability.
How to fix CVE-2025-57771?
To fix CVE-2025-57771, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-57771 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-57771 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-57771?
CVE-2025-57771 affects RooCodeInc Roo-Code.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.