Skip to main content

CodeWhale EUVDEUVD-2026-60965

| CVE-2026-75858 HIGH
Code Injection (CWE-94)
2026-08-18 VulnCheck GHSA-wrj3-vj8c-784f
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Embed prompt injection payload in external content
  2. Delivery
    Victim agent reads content via rlm_open
  3. Exploit
    Injected instruction directs agent to call rlm_eval
  4. Execution
    Approval policy bypassed silently (ApprovalRequirement::Auto)
  5. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

CodeWhale 0.8.33 <0.8.41
CodeWhale 0.8.41 <0.8.64

Affected Packages

cargo codewhale fix: 0.8.64
cargo codewhale-tui fix: 0.8.64
cargo deepseek-tui fix: 0.8.41
npm codewhale fix: 0.8.64
npm codewhale-tui fix: 0.8.64
npm deepseek-tui fix: 0.8.41
euvd codewhale fix: 0.8.41, 0.8.64

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

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche open-source AI coding agent, limited enterprise deployment footprint
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

62
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2026-75856 CRITICAL POC
9.2 Aug 18

Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through th

CVE-2026-75915 HIGH POC
8.7 Aug 18

Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl

CVE-2026-75914 HIGH POC
8.7 Aug 18

Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'

CVE-2026-75859 HIGH POC
8.7 Aug 18

Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta

CVE-2026-75913 HIGH POC
8.5 Aug 18

Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ

CVE-2026-75911 HIGH POC
8.5 Aug 18

Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach

CVE-2026-75912 HIGH POC
8.3 Aug 18

Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz

CVE-2026-75857 HIGH POC
7.3 Aug 18

Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr

CVE-2026-83816 HIGH
8.1 Nov 16

Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin

CVE-2026-83817 HIGH
7.5 Nov 16

CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy