Skip to content
HighVulnerabilityLLM-specific

CVE-2025-58370: Roo Code command parsing flaw allows arbitrary command execution via prompts

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

Summary

CVE-2025-58370 affects Roo Code, an AI-powered autonomous coding agent, in versions below 3.26.0. The command parsing logic mishandles Bash parameter expansion and indirect references, so when the agent is configured to auto-approve certain commands, an attacker who can influence prompts can get additional arbitrary commands executed alongside the intended one. The weakness is classified as CWE-78, OS Command Injection.

Mitigation

This is fixed in version 3.26.0.