CVE-2025-57771: Roo-Code potential remote code execution via auto-execute command parsing flaw

Published Aug 22, 2025
·
Updated

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

1 affected component
Roo Code Roo-Code<3.25.5

Event History

Aug 22, 2025
CVE Published
via MITRE·04:35 PM
Data Sourced
via MITRE·04:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

How do I fix CVE-2025-57771?

To fix CVE-2025-57771, users should update Roo-Code to version 3.25.5 or later.

3

What types of software are affected by CVE-2025-57771?

CVE-2025-57771 affects all versions of Roo-Code prior to 3.25.5.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203