{"cve":"CVE-2026-45311","nvd":{"published":"2026-05-28T18:16:35.170","modified":"2026-10-26T13:10:00.140","status":"Deferred","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 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-94"],"references":["https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8","https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8"],"products":[],"source":"nvd","synced_at":"2026-10-26T13:39:24.642594360+00:00"},"epss":{"cve":"CVE-2026-45311","score":0.00498,"percentile":0.42428,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-wx44-2q6h-j6p8","url":"https://osv.dev/vulnerability/GHSA-wx44-2q6h-j6p8","summary":"DeepSeek TUI: run_tests Tool Enables RCE via Malicious Repository Without Approval","modified":"2026-06-09T10:30:13.948106433Z","packages":[{"ecosystem":"crates.io","name":"deepseek-tui","purl":"pkg:cargo/deepseek-tui","ranges":[">=0.3.0 <0.8.23"],"fixed":["0.8.23"]},{"ecosystem":"crates.io","name":"deepseek-tui-cli","purl":"pkg:cargo/deepseek-tui-cli","ranges":[">=0.3.0 <0.8.23"],"fixed":["0.8.23"]},{"ecosystem":"npm","name":"deepseek-tui","purl":"pkg:npm/deepseek-tui","ranges":[">=0.3.0 <0.8.23"],"fixed":["0.8.23"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}