CVE-2025-58372
BaseFortify
Publication date: 2025-09-05
Last updated on: 2025-09-15
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| roocode | roo_code | to 3.26.0 (exc) |
Helpful Resources
Exploitability
| 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.