Skip to content
HighVulnerabilityLLM-specific

CVE-2025-58372: Roo Code arbitrary code execution via unprotected .code-workspace files

Identifier
CVE-2025-58372
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Roo Code, an AI-powered autonomous coding agent for editors, versions 3.25.23 and below, does not protect VS Code .code-workspace files the way it protects the .vscode folder. If the agent auto-approves file writes, an attacker who can influence its prompts, for example through prompt injection, can have malicious workspace settings or tasks written. Those tasks run automatically when the workspace is reopened, leading to arbitrary code execution.

Mitigation

Fixed in version 3.26.0.