{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-45311","published":"2026-05-28T18:16:35.170000Z","last_modified":"2026-10-26T13:10:00.140000Z","status":"Deferred","cvss":{"version":"3.1","score":9.6,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["hmbown"],"products":["hmbown/codewhale"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-wx44-2q6h-j6p8","ecosystem":"crates.io","name":"deepseek-tui","purl":"pkg:cargo/deepseek-tui","ranges":[{"introduced":"0.3.0","fixed":"0.8.23"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-wx44-2q6h-j6p8","ecosystem":"crates.io","name":"deepseek-tui-cli","purl":"pkg:cargo/deepseek-tui-cli","ranges":[{"introduced":"0.3.0","fixed":"0.8.23"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-wx44-2q6h-j6p8","ecosystem":"npm","name":"deepseek-tui","purl":"pkg:npm/deepseek-tui","ranges":[{"introduced":"0.3.0","fixed":"0.8.23"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":73,"links":{"html_es":"/es/cve/CVE-2026-45311/","html_en":"/en/cve/CVE-2026-45311/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-45311","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-45311"},"untrusted":{"vendor_name":"Hmbown","product_name":"CodeWhale","desc_en":"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.","affected":[{"untrusted_vendor":"Hmbown","untrusted_product":"CodeWhale","versions":[]}],"references":[{"url":"https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8","tags":[]}]}}