CVE-2026-45311 Details
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.
A vulnerability in CodeWhale, specifically in the DeepSeek + MiMo coding agent, versions 0.3.0 prior to 0.8.23, allows the run_tests tool to execute cargo test in the workspace with automatic approval. This design choice creates a security inconsistency, as it enables test code in a malicious repository to run arbitrary shell commands, exfiltrate credentials, or establish persistence without user consent. The vulnerability is exacerbated by AGENTS.md, which can prompt the model to run tests at the beginning of a session.
Users are advised to update to CodeWhale version 0.8.23 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 28, 2026CISA-ADP
Assessed Jun 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Hmbown CodeWhale | >= 0.3.0, < 0.8.23 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | CVE Modified | CISA-ADP |
| May 28, 2026 | New CVE Received | [email protected] |
Volerion