# CVE-2025-53536: Roo Code allows Potential Remote Code Execution via .vscode/settings.json

- 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.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-07-07T17:57:36.835Z
- Modified: 2026-06-17T09:38:24.343Z
- Weaknesses: CWE-552
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Roo Code is an AI-powered autonomous coding agent. Prior to 3.22.6, if the victim had "Write" auto-approved, an attacker with the ability to submit prompts to the agent could write to VS Code settings files and trigger code execution. There were multiple ways to achieve that. One example is with the php.validate.executablePath setting which lets you set the path for the php executable for syntax validation. The attacker could have written the path to an arbitrary command there and then created a php file to trigger it. This vulnerability is fixed in 3.22.6.

(As written by CVE List.)

## Affected

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

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-3765-5vjr-qjgm> (vendor-advisory)
- <https://github.com/RooCodeInc/Roo-Code/commit/1be6fce1a6864ae63e8160b0666db2c647f2dbba> (patch)
- <https://github.com/RooCodeInc/Roo-Code/commit/3993406ebdc0553a32ef391a799a4fb124930a1c> (patch)

## Sources

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

---

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