CVE-2025-57771
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-22

Last updated on: 2025-08-22

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-22
Last Modified
2025-08-22
Generated
2026-05-06
AI Q&A
2025-08-22
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
roocodeinc roo-code *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Roo Code versions prior to 3.25.5, where the software 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 commands, an attacker who can submit crafted prompts may inject arbitrary commands to be executed alongside the intended command. Exploitation requires attacker access to submit prompts and the user enabling auto-approved command execution, which is disabled by default.


How can this vulnerability impact me? :

This vulnerability could allow an attacker to execute arbitrary code on the user's system if they can submit crafted prompts and the user has enabled auto-approved command execution. This could lead to unauthorized actions, data compromise, or system control by the attacker.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update Roo Code to version 3.25.5 or later where the issue is fixed. Additionally, ensure that auto-approved command execution is disabled, as it is by default, to prevent arbitrary command execution by attackers.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart