# CVE-2026-75858: CodeWhale rlm_eval approval bypass code execution

Source: https://junglewise.ai/threats/cve-2026-75858-codewhale-rlm-eval-approval-bypass-code-execution  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-04. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-75858 · Severity: high · CVSS 7.8 · Published 2026-09-04

CodeWhale is an AI agent framework that includes a tool called rlm_eval to execute Python code. The tool is configured to bypass user approval policies, automatically executing any Python code the AI model requests without prompting the user for permission. An attacker can inject malicious code through untrusted content (web pages, fetched files, or other sources) that the agent reads, causing the tool to execute arbitrary code on the user's computer with full access to their files, credentials, and system resources.

Technologies: [codewhale-tui (crates.io)](https://junglewise.ai/threats/technologies/codewhale-tui), [deepseek-tui (crates.io)](https://junglewise.ai/threats/technologies/deepseek-tui). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2026-75858 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-75858 being exploited in the wild.

**How severe is CVE-2026-75858?** High severity, with a CVSS score of 7.8, published 4 September 2026.

**Which products and versions are affected?** codewhale-tui (crates.io) >= 0.8.41, < 0.8.64; deepseek-tui (crates.io) >= 0.8.33, <= 0.8.41.

**Is there a fix for CVE-2026-75858?** A patch was published on 2026-07-16: Fix available in version 0.8.64 (commit 57f3c89471e27ac4032d9791f6885e5d4408c381) Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-75858 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-75858?** Check whether you run codewhale-tui (crates.io) or deepseek-tui (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a code injection flaw in the rlm_eval and rlm_open tools in CodeWhale. The rlm_eval tool's approval_requirement() method returns ApprovalRequirement::Auto, which overrides the trait default of Required for tools with ExecutesCode capability. This causes the engine's approval gate to short-circuit: when approval_requirement() is Auto, the condition (spec.approval_requirement() != ApprovalRequirement::Auto && !registry.context().auto_approve) evaluates to false, preventing any Event::ApprovalRequired from being emitted. As a result, the user's --approval-policy (on-request, unless-trusted, never) is never consulted. The rlm_eval tool reads the LLM-controlled "code" field and passes it directly to kernel.run() in a real python3 interpreter. The companion rlm_open tool can stage content, file reads, or URL fetches into the Python kernel before rlm_eval executes. Both tools are registered unconditionally with no disable flag. An attacker can inject prompt injection payloads via any untrusted content the agent processes (web pages, fetched URLs, repo files, MCP tool results) to trigger unsandboxed code execution at the user's UID, allowing theft of SSH keys, cloud credentials, and other secrets, or achieving persistence via shell rc files and authorized_keys. The fix in version 0.8.64 (commit 57f3c89) addresses this by respecting the approval policy for these tools.

## Affected products

- CodeWhale codewhale-tui >= 0.8.41, < 0.8.64
- CodeWhale codewhale >= 0.8.41, < 0.8.64
- DeepSeek deepseek-tui >= 0.8.33, <= 0.8.41
- DeepSeek deepseek-tui >= 0.8.33, < 0.8.41

## Identifiers

- CVE-2026-75858
- GHSA-wrj3-vj8c-784f

## Timeline

- 2026-09-04: disclosed: Public disclosure via GitHub Advisory Database
- 2026-07-16: patched: Fix available in version 0.8.64 (commit 57f3c89471e27ac4032d9791f6885e5d4408c381)

## References

- [https://api.github.com/users/sai-sh](https://api.github.com/users/sai-sh)
- [https://github.com/sai-sh](https://github.com/sai-sh)
- [https://api.github.com/users/sai-sh/gists%7B/gist_id%7D](https://api.github.com/users/sai-sh/gists%7B/gist_id%7D)
- [https://api.github.com/users/sai-sh/repos](https://api.github.com/users/sai-sh/repos)
- [https://avatars.githubusercontent.com/u/251119765?v=4](https://avatars.githubusercontent.com/u/251119765?v=4)
- [https://api.github.com/users/sai-sh/events%7B/privacy%7D](https://api.github.com/users/sai-sh/events%7B/privacy%7D)

## Related threats

- [CodeWhale project config allow_shell override enables arbitrary shell execution](https://junglewise.ai/threats/cve-2026-75911-codewhale-project-config-allow-shell-override-enables-arbitrary)
- [CodeWhale git_blame argument injection allows arbitrary file read](https://junglewise.ai/threats/cve-2026-75912-codewhale-git-blame-argument-injection-allows-arbitrary-file-read)
- [CodeWhale SSRF bypass via TOCTOU in DNS pinning](https://junglewise.ai/threats/cve-2026-75856-codewhale-ssrf-bypass-via-toctou-in-dns-pinning)
- [CodeWhale js_execution environment variable disclosure](https://junglewise.ai/threats/cve-2026-75915-codewhale-js-execution-environment-variable-disclosure)
- [CodeWhale project config instructions arbitrary file read](https://junglewise.ai/threats/cve-2026-75859-codewhale-project-config-instructions-arbitrary-file-read)
