# CVE-2025-58370: Roo Code: Potential Remote Code Execution via Bash Parameter Expansion and Indirect Reference

- 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.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2025-09-05T22:09:04.786Z
- Modified: 2026-06-17T09:44:22.477Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Versions below 3.26.0 contain a vulnerability in the command parsing logic where the Bash parameter expansion and indirect reference were not handled correctly. If the agent was configured to auto-approve execution of certain commands, an attacker able to influence prompts could abuse this weakness to execute additional arbitrary commands alongside the intended one. This 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

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-2rm5-cvcm-7592> (vendor-advisory)

## Sources

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

---

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