# CVE-2025-58372: Roo Code: Potential Remote Code Execution via .code-workspace

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-09-05T22:51:01.725Z
- Modified: 2026-06-17T09:44:22.700Z
- Weaknesses: CWE-94, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- RooCodeInc Roo-Code: < 3.26.0
- roocode roo_code: before 3.26.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-4pqh-4ggm-jfmm> (vendor-advisory)
- <https://github.com/RooCodeInc/Roo-Code/commit/296edfc829a7c6efc8b5dbe09aa766a9aed79598> (patch)
- <https://github.com/RooCodeInc/Roo-Code/releases/tag/v3.26.0> (release-notes)

## Sources

- CVE List: [CVE-2025-58372](https://www.cve.org/CVERecord?id=CVE-2025-58372), CVE Terms of Use, modified 2025-09-08
- NVD: [CVE-2025-58372](https://nvd.nist.gov/vuln/detail/CVE-2025-58372), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-58372 · Whole record: https://cve.day/CVE-2025-58372.json · Rebuilt by cve.day 2026-11-25T22:59:04.294Z
