CVE-2025-58372 Details
Description
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.
A vulnerability in Roo Code versions through 3.25.23 allows certain Visual Studio Code workspace configuration files (.code-workspace) to be improperly protected compared to the .vscode folder. If the agent's auto-approve file writes feature is enabled, an attacker could exploit this by injecting prompts to manipulate workspace settings or tasks. These malicious tasks could be executed automatically when the workspace is reopened, potentially leading to arbitrary code execution.
The vulnerability has been addressed in version 3.26.0, which adds .code-workspace files to the list of protected files. Users should update to this version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-732 | Incorrect Permission Assignment for Critical Resource | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| roocode roo code | < 3.26.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2025 | Initial Analysis | [email protected] |
| Sep 5, 2025 | New CVE Received | [email protected] |