CVE-2025-58372: Roo Code: Potential Remote Code Execution via .code-workspace

Published Sep 5, 2025
·
Updated

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Versions 3.25.23 and below contain a vulnerability where certain VS Code workspace configuration files (.code-workspace) are not protected in the same way as the .vscode folder. If the agent was configured to auto-approve file writes, an attacker able to influence prompts (for example via prompt injection) could cause malicious workspace settings or tasks to be written. These tasks could then be executed automatically when the workspace is reopened, resulting in arbitrary code execution. This issue is fixed in version 3.26.0.

Affected Software

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

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2025-58372?

CVE-2025-58372 is considered a moderate severity vulnerability due to potential exposure of workspace configuration files.

2

How do I fix CVE-2025-58372?

To fix CVE-2025-58372, update your Roo Code to version 3.26.0 or later.

3

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

Versions of Roo Code prior to 3.26.0 are affected by CVE-2025-58372.

4

What type of files are involved in CVE-2025-58372?

CVE-2025-58372 involves .code-workspace files which are not protected the same way as the .vscode folder.

5

Who is affected by CVE-2025-58372?

Users of Roo Code versions 3.25.23 and below are affected by CVE-2025-58372.

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