CVE-2025-58372CWE-732CWE-94

Roo Code: Potential Remote Code Execution via .code-workspace

High · published September 5, 2025

CVSS v3.1
8.1
EPSS
1%
Percentile
44.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00531 · 44.0th percentile
Weaknesses
CWE-732 · Incorrect Permission Assignment for Critical Resource; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-09-05T22:51Z
EPSS history
Timeline
  • 05 SEP 22:51Z
    Roo Code: Potential Remote Code Execution via .code-workspace
    cvelistv5