CVE-2025-58372
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-05

Last updated on: 2025-09-15

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-05
Last Modified
2025-09-15
Generated
2026-05-27
AI Q&A
2025-09-06
EPSS Evaluated
2026-05-25
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
roocode roo_code to 3.26.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-732 The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Roo Code versions 3.25.23 and below, where certain VS Code workspace configuration files (.code-workspace) are not protected like the .vscode folder. If the agent is set to auto-approve file writes, an attacker who can influence prompts (e.g., via prompt injection) could cause malicious workspace settings or tasks to be written. These malicious tasks could then execute automatically when the workspace is reopened, leading to arbitrary code execution.


How can this vulnerability impact me? :

The vulnerability can lead to arbitrary code execution on your system if exploited. An attacker could inject malicious tasks into your workspace configuration, which would run automatically when you reopen the workspace, potentially compromising your system's security and integrity.


What immediate steps should I take to mitigate this vulnerability?

Upgrade Roo Code to version 3.26.0 or later, as this version contains the fix for the vulnerability. Additionally, avoid configuring the agent to auto-approve file writes, and be cautious of prompt injection attacks that could influence the agent to write malicious workspace settings or tasks.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart