{"id":"CVE-2025-65946","published":"2025-11-21T22:11:12Z","modified":"2025-11-25T18:56:33Z","title":"Roo Code is Vulnerable to Potential Remote Code Execution via zsh Command Validation Bug","vendor":"RooCodeInc","product":"Roo-Code","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00707,"percentile":0.54327,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-hwm7-w97p-4h8p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RooCodeInc/Roo-Code/pull/7667","tags":["x_refsource_MISC"]},{"url":"https://github.com/RooCodeInc/Roo-Code/commit/b50104cc5987ce64f5154309d967ae8c74cfd1f3","tags":["x_refsource_MISC"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.87},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"roocodeinc","affectedVersions":[{"vendor":"RooCodeInc","product":"Roo-Code","versions":["< 3.26.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-11-25T18:56:25.249260Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-198528","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-roocodeinc-roo-code-cve-2025-54377","parents":[{"from":"CVE-2025-54377","to":"CVE-2025-65946","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["webview-ui/src/utils/command-validation.ts"],"commits":["https://github.com/RooCodeInc/Roo-Code/commit/9d434c2db9b20eb5c78b698cb2b0037cd2074534","https://github.com/RooCodeInc/Roo-Code/commit/b50104cc5987ce64f5154309d967ae8c74cfd1f3"],"basis":"rarely changed file"}]},{"from":"CVE-2025-57771","to":"CVE-2025-65946","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["webview-ui/src/utils/command-validation.ts"],"commits":["https://github.com/RooCodeInc/Roo-Code/commit/de359a465c67aefc67553aa2b464591b602c4bdc","https://github.com/RooCodeInc/Roo-Code/commit/b50104cc5987ce64f5154309d967ae8c74cfd1f3"],"basis":"rarely changed file"}]}]}}