Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEmbed prompt injection payload in external content
-
DeliveryVictim agent reads content via rlm_open
-
ExploitInjected instruction directs agent to call rlm_eval
-
ExecutionApproval policy bypassed silently (ApprovalRequirement::Auto)
-
ImpactArbitrary Python executes at user privilege level
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to be running a CodeWhale agent in versions 0.8.41 through 0.8.63 in a workflow that processes externally-controlled or untrusted content - specifically content reachable via the rlm_open tool, a fetched URL, a third-party repository file, or an MCP tool result. The attacker must be able to place a prompt injection payload in content the agent will read; no authentication to the victim's system is required by the attacker. Exploitation is bounded by the following limiting factors: the victim must actively initiate an agent session that reads attacker-influenced content (UI:P in CVSS 4.0 - passive user interaction), there is no persistent network service to attack directly, and the attack vector is entirely local execution on the user's machine. Workflows that exclusively process pre-vetted, trusted local files with no external content fetching are not exposed. The use of a strict --approval-policy configuration does not mitigate the vulnerability in affected versions, as the approval bypass occurs before policy evaluation. |
| Impact | The CVSS 4.0 score of 8.5 (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) accurately models the threat: the attack executes locally on the victim's machine, requires no attacker privileges (PR:N) to plant the malicious payload in external content, and delivers full code execution impact (VC:H/VI:H/VA:H) once the victim's agent processes the injected content (UI:P). The local attack vector (AV:L) appropriately reflects that exploitation culminates in local process execution, not a remotely reachable network service. KEV status is absent from all available intelligence sources, meaning confirmed active exploitation by CISA is not established; likewise, no EPSS score is available for probabilistic comparison. The absence of a documented POC means exploitation requires crafting a working prompt injection payload, which is a well-understood but non-trivial technique. The silent, audit-free nature of the bypass is particularly dangerous operationally: even a mid-sized municipal IT team in swidnica relying on CodeWhale for automated repository analysis would have no log evidence of exploitation. The limited deployment footprint of CodeWhale bounds aggregate exposure, but any affected user running the agent against external content faces real, high-severity risk. |
| Exploit ScenarioDerived | An attacker publishes a repository README or web page containing a carefully crafted prompt injection payload instructing the CodeWhale agent to call rlm_eval with attacker-specified Python code - for example, code that exfiltrates local SSH keys or environment variables to an attacker-controlled endpoint. When a developer running a vulnerable CodeWhale version directs the agent to summarize or analyze that external resource, the agent's rlm_open tool stages the content, the injected instruction is interpreted as a legitimate model directive, and rlm_eval executes the Python payload silently at the user's OS privilege level with no approval prompt or log entry. No public exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attacker to execute arbitrary Python code on the victim's machine by exploiting a hardcoded approval bypass in the rlm_eval built-in tool. The tool's approval_requirement() method returned ApprovalRequirement::Auto, causing the engine to silently skip user approval prompts regardless of the operator's configured --approval-policy, enabling prompt injection attacks through any external content the agent reads. No public exploit has been identified at time of analysis, but the attack surface encompasses any CodeWhale agent workflow that fetches untrusted content such as web pages, repository files, or MCP tool results.
RemediationAI
Upgrade to CodeWhale version 0.8.64, which resolves the vulnerability by changing RlmEvalTool::approval_requirement() to return ApprovalRequirement::Required and declaring ToolCapability::RequiresApproval, ensuring all code execution through rlm_eval is gated on user confirmation consistent with the configured --approval-policy. The patch commit is available at https://github.com/Hmbown/CodeWhale/commit/57f3c89471e27ac4032d9791f6885e5d4408c381 and the vendor advisory at https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wrj3-vj8c-784f. For environments where immediate upgrade is not possible, the most effective compensating control is to restrict CodeWhale agent workflows to fully trusted, pre-vetted local content - avoiding any use of rlm_open or URL-fetching capabilities against third-party or user-submitted content. Disabling the rlm_eval and rlm_open tools in the agent configuration entirely eliminates the attack surface but removes Python evaluation capability from all workflows. There is no known configuration flag to enforce approval on a per-tool basis in vulnerable versions, so content restriction is the only viable workaround.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in cargo, npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CodeWhale is a Rust-based AI coding agent distributed under vendor hmbown as two packages - codewhale and codewhale-tui - confirmed by CPE strings cpe:2.3:a:hmbown:codewhale. The vulnerable component is RlmEvalTool, implemented in crates/tui/src/tools/rlm.rs, which executes model-supplied code via the local python3 interpreter. The root cause is CWE-94 (Improper Control of Code Generation / Code Injection): the approval_requirement() method was hardcoded to return ApprovalRequirement::Auto, a value the engine interprets as 'never prompt.' This caused the tool to bypass the user's --approval-policy enforcement entirely - no prompt, no audit log, no policy check. The companion rlm_open tool can be used to stage attacker-controlled content into the agent's context. The fix in commit 57f3c89471e27ac4032d9791f6885e5d4408c381 changes the return value to ApprovalRequirement::Required and adds ToolCapability::RequiresApproval to the tool's declared capability set. The same misconfiguration was simultaneously fixed in ShellInteractTool (crates/tui/src/tools/shell.rs), suggesting a systemic pattern of missing approval declarations across code-execution tools.
Know when Codewhale gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Execution is local to the user's machine (AV:L); no attacker privileges required (PR:N); user must run the agent against malicious content (UI:R); full CIA impact from arbitrary code execution.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
CodeWhale (packages codewhale / codewhale-tui) versions >= 0.8.41 and < 0.8.64 contain a remote code execution vulnerability in the rlm_eval tool. The tool's approval_requirement() returns ApprovalRequirement::Auto, which the engine treats as 'never prompt,' causing arbitrary model-supplied Python code to run in a python3 interpreter without consulting the user's configured --approval-policy and without any approval prompt or audit step. An attacker can induce the agent to execute arbitrary code via prompt injection in untrusted content the agent reads (a web page, fetched URL, repository file, or MCP tool result); the companion rlm_open tool can stage such content. Code runs on the user's machine at the user's privilege level. Fixed in 0.8.64.
Articles & Coverage 1
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CodeWhale agent platform versions 0.8.41-0.8.63 contain a security control bypass enabling remote code execution on systems processing untrusted external content. Any organization deploying CodeWhale for automated workflows that read web pages, repository files, or API responses faces immediate risk of system compromise. Patching must be prioritized within days to prevent potential data exfiltration and operational disruption.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through th
Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl
Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'
Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta
Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ
Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach
Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz
Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr
Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin
CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat
EUVD-2026-60965
GHSA-wrj3-vj8c-784f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB