cve.bz

CVE-2026-45311 hmbown codewhale: Code Injection

9.6 criticalEPSS 0.6%Fix available

Critical (9.6) in hmbown codewhale. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in deepseek-tui 0.8.23.

On this page
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.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 48th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-06-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • deepseek-tui (crates.io): fixed in 0.8.23
  • deepseek-tui-cli (crates.io): fixed in 0.8.23
  • deepseek-tui (npm): fixed in 0.8.23

Ask an AI about this CVE

Show the promptExplain CVE-2026-45311 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-45311?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-45311?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-45311 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Hmbown CodeWhale>= 0.3.0, < 0.8.23

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wx44-2q6h-j6p8crates.iodeepseek-tui>=0.3.0 <0.8.230.8.23
GHSA-wx44-2q6h-j6p8crates.iodeepseek-tui-cli>=0.3.0 <0.8.230.8.23
GHSA-wx44-2q6h-j6p8npmdeepseek-tui>=0.3.0 <0.8.230.8.23

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON