{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45311","id":"CVE-2026-45311","title":"CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval","description":"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 ","descriptionLong":"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.","published":"2026-05-28T17:32:26.950Z","updated":"2026-10-28T02:30:51.476915677Z","reserved":"2026-05-11T20:50:30.538Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["Hmbown CodeWhale"],"affectedProducts":[{"vendor":"Hmbown","product":"CodeWhale","defaultStatus":null,"versions":[{"version":">= 0.3.0, < 0.8.23","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"deepseek-tui","purl":"pkg:cargo/deepseek-tui","ranges":[">=0.3.0 <0.8.23"],"fixed":["0.8.23"],"advisory":"GHSA-wx44-2q6h-j6p8"},{"ecosystem":"crates.io","name":"deepseek-tui-cli","purl":"pkg:cargo/deepseek-tui-cli","ranges":[">=0.3.0 <0.8.23"],"fixed":["0.8.23"],"advisory":"GHSA-wx44-2q6h-j6p8"},{"ecosystem":"npm","name":"deepseek-tui","purl":"pkg:npm/deepseek-tui","ranges":[">=0.3.0 <0.8.23"],"fixed":["0.8.23"],"advisory":"GHSA-wx44-2q6h-j6p8"}],"cwes":["CWE-94"],"aliases":["GHSA-wx44-2q6h-j6p8"],"references":[{"url":"https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45311.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45311","tags":["advisory"]},{"url":"https://github.com/Hmbown/DeepSeek-TUI/security/advisories/GHSA-wx44-2q6h-j6p8","tags":["web"]},{"url":"https://github.com/Hmbown/DeepSeek-TUI","tags":["package"]},{"url":"https://github.com/Hmbown/DeepSeek-TUI/releases/tag/v0.8.23","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00566,"epssPercentile":0.47747,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45311","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45311","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45311","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wx44-2q6h-j6p8","ok":true,"note":"GHSA-wx44-2q6h-j6p8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45311","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}