漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval
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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Vulnerability Title
CodeWhale 代码注入漏洞
Vulnerability Description
CodeWhale是Hunter Bown个人开发者的一款终端编码智能体工具。 CodeWhale 0.3.0至0.8.23版本存在代码注入漏洞,该漏洞源于run_tests工具以ApprovalRequirement::Auto执行cargo test,编译和执行任意代码,在恶意仓库中测试代码可执行任意shell命令、窃取凭据或建立持久性,且AGENTS.md可指示模型在会话开始时主动运行测试。
CVSS Information
N/A
Vulnerability Type
N/A