# CVE-2025-65946: Roo Code is Vulnerable to Potential Remote Code Execution via zsh Command Validation Bug

- 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.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2025-11-21T22:11:12.163Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-20, CWE-77
- 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. Prior to version 3.26.7, Due to an error in validation it was possible for Roo to automatically execute commands that did not match the allow list prefixes. This issue has been patched in version 3.26.7.

(As written by CVE List.)

## Affected

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

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-hwm7-w97p-4h8p> (vendor-advisory)
- <https://github.com/RooCodeInc/Roo-Code/pull/7667> (issue-tracking)
- <https://github.com/RooCodeInc/Roo-Code/commit/b50104cc5987ce64f5154309d967ae8c74cfd1f3> (patch)

## Sources

- CVE List: [CVE-2025-65946](https://www.cve.org/CVERecord?id=CVE-2025-65946), CVE Terms of Use, modified 2025-11-25
- NVD: [CVE-2025-65946](https://nvd.nist.gov/vuln/detail/CVE-2025-65946), Public domain, modified 2026-10-18

---

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