CVE-2025-58370: Roo Code: Potential Remote Code Execution via Bash Parameter Expansion and Indirect Reference

Published Sep 5, 2025
·
Updated

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Versions below 3.26.0 contain a vulnerability in the command parsing logic where the Bash parameter expansion and indirect reference were not handled correctly. If the agent was configured to auto-approve execution of certain commands, an attacker able to influence prompts could abuse this weakness to execute additional arbitrary commands alongside the intended one. This is fixed in version 3.26.0.

Affected Software

2 affected components
Roo Code<3.26.0
RooCode Roo Code<3.26.0

Event History

Sep 5, 2025
CVE Published
via MITRE·10:09 PM
Data Sourced
via MITRE·10:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-58370?

CVE-2025-58370 has been assigned a high severity rating due to its potential to allow unauthorized command execution.

2

How do I fix CVE-2025-58370?

To fix CVE-2025-58370, update Roo Code to version 3.26.0 or later to address the vulnerability in command parsing logic.

3

What versions of Roo Code are affected by CVE-2025-58370?

Roo Code versions below 3.26.0 are affected by CVE-2025-58370.

4

What are the consequences of CVE-2025-58370?

The consequences of CVE-2025-58370 include potential unauthorized command execution leading to a compromise of the user's environment.

5

Is it safe to use versions of Roo Code below 3.26.0 after CVE-2025-58370?

Using versions of Roo Code below 3.26.0 after CVE-2025-58370 is not safe as they contain a known vulnerability.

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