CVE-2025-58372
published high CVSS 3.1 · 8.1Roo Code: Potential Remote Code Execution via .code-workspace
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| RooCodeInc | — | Roo-Code< 3.26.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| RooCodeInc | Roo-Code | < 3.26.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource
- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
3Provider assertions
2GitHub_M · cna
Roo Code: Potential Remote Code Execution via .code-workspace
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fd2a12d9ab455d7a7bc84c6327f94ddf3684eea73c7795656b844854a64de2c6
- Ingested
- 23 Sep 2026, 08:53:54 UTC
- Source record
- Official CVE record