Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

CVSS 9.6 · Critical EPSS 0.04% · P14

Affected Version Matrix 1

VendorProductVersion RangeStatus
HmbownCodeWhale>= 0.3.0, < 0.8.23affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-45311

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
HmbownCodeWhale >= 0.3.0, < 0.8.23 -

II. Public POCs for CVE-2026-45311

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-45311

登录查看更多情报信息。

Vendor Advisories for CVE-2026-45311 (1)

Same Patch Batch · Hmbown · 2026-05-28 · 4 CVEs total

CVE-2026-453749.6 CRITICALCodeWhale: task_create Insecure Defaults Enable RCE via Prompt Injection in Project Files
CVE-2026-453107.4 HIGHCodeWhale: SSRF via HTTP Redirect Bypass in fetch_url Tool
CVE-2026-453737.4 HIGHCodeWhale: SSRF‌ IPV6 bypass

IV. Related Vulnerabilities

V. Comments for CVE-2026-45311

No comments yet


Leave a comment