CVE-2025-58372: Roo Code: Potential Remote Code Execution via .code-workspace
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
Remediation
Event History
Frequently Asked Questions
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.
How do I fix CVE-2025-58372?
To fix CVE-2025-58372, update your Roo Code to version 3.26.0 or later.
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.
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.
Who is affected by CVE-2025-58372?
Users of Roo Code versions 3.25.23 and below are affected by CVE-2025-58372.