# CVE-2026-45311: CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-14T20:29:33.000Z
- Modified: 2026-10-26T13:10:00.140Z
- Also known as: GHSA-wx44-2q6h-j6p8
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Hmbown CodeWhale: >= 0.3.0, < 0.8.23
- deepseek-tui (crates.io): from 0.3.0 before 0.8.23
- deepseek-tui-cli (crates.io): from 0.3.0 before 0.8.23
- deepseek-tui (npm): from 0.3.0 before 0.8.23

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8> (exploit, web)
- <https://github.com/Hmbown/DeepSeek-TUI/security/advisories/GHSA-wx44-2q6h-j6p8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45311> (advisory)
- <https://github.com/Hmbown/DeepSeek-TUI> (package)
- <https://github.com/Hmbown/DeepSeek-TUI/releases/tag/v0.8.23> (web)

## Sources

- CVE List: [CVE-2026-45311](https://www.cve.org/CVERecord?id=CVE-2026-45311), CVE Terms of Use, modified 2026-06-01
- GitHub Advisory Database: [GHSA-wx44-2q6h-j6p8](https://github.com/advisories/GHSA-wx44-2q6h-j6p8), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2026-45311](https://nvd.nist.gov/vuln/detail/CVE-2026-45311), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-45311 · Whole record: https://cve.day/CVE-2026-45311.json · Rebuilt by cve.day 2026-11-25T22:59:22.990Z
