{"id":"CVE-2026-45311","published":"2026-05-28T17:32:26Z","modified":"2026-06-01T19:09:50Z","title":"CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval","vendor":"Hmbown","product":"CodeWhale","tier":"tail","description":{"text":"CodeWhale is a DeepSeek + MiMo coding agent in terminal. From 0.3.0 to 0.8.23, the run_tests tool executes cargo test in the workspace with ApprovalRequirement::Auto, meaning it runs without any user approval prompt. cargo test compiles and executes arbitrary code: test binaries, build.rs build scripts, and proc macros. While auto-approving test execution is a deliberate design choice, it creates an inconsistency in the security boundary. However, in a malicious repository, test code can execute arbitrary shell commands, exfiltrate credentials, or establish persistence with zero approval. The attack is amplified by AGENTS.md (auto-loaded into the system prompt), which can instruct the model to run tests proactively at session start. This vulnerability is fixed in 0.8.23.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00685,"percentile":0.47792,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":9.56},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"hmbown","affectedVersions":[{"vendor":"Hmbown","product":"CodeWhale","versions":[">= 0.3.0, < 0.8.23"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-01T19:09:32.481506Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deepseek-tui","vulnerableRanges":[">=0.3.0, <0.8.23"],"patched":["0.8.23"],"from":["GHSA-wx44-2q6h-j6p8"],"provenance":"source"},{"ecosystem":"crates.io","package":"deepseek-tui-cli","vulnerableRanges":[">=0.3.0, <0.8.23"],"patched":["0.8.23"],"from":["GHSA-wx44-2q6h-j6p8"],"provenance":"source"},{"ecosystem":"npm","package":"deepseek-tui","vulnerableRanges":[">=0.3.0, <0.8.23"],"patched":["0.8.23"],"from":["GHSA-wx44-2q6h-j6p8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-32965","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45310","published":"2026-05-28","fixed":"0.8.22","kev":false,"link":{"from":"CVE-2026-45310","to":"CVE-2026-45311","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:deepseek-tui","fromFixed":"0.8.22","toFixed":"0.8.23","daysApart":0},{"kind":"version-step","provenance":"source","package":"crates.io:deepseek-tui","fromFixed":"0.8.22","toFixed":"0.8.23","daysApart":0}]}},{"cve":"CVE-2026-45311","published":"2026-05-28","fixed":"0.8.23","kev":false},{"cve":"CVE-2026-75856","published":"2026-08-18","fixed":"0.8.41","kev":false},{"cve":"CVE-2026-75857","published":"2026-08-18","fixed":"0.8.41","kev":false},{"cve":"CVE-2026-75858","published":"2026-08-18","fixed":"0.8.41","kev":false}],"package":"npm:deepseek-tui"}}