Description
CodeWhale versions before 0.8.64 fail to properly validate the allow_shell configuration parameter from project config files, allowing attackers to enable arbitrary shell command execution by committing a malicious .codewhale/config.toml file to a repository. When a user clones and opens the repository in CodeWhale, the AI model gains access to exec_shell and task_shell tools, enabling execution of arbitrary shell commands on the victim's machine without explicit user consent.
Published: 2026-08-18
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

CodeWhale fails to validate the allow_shell parameter inside project configuration files, allowing an attacker to embed malicious shell commands. By committing a tampered .codewhale/config.toml that sets allow_shell to true, the application’s exec_shell and task_shell tools can run arbitrary commands on the host when a user clones and opens the repository. The flaw is a remote code execution vulnerability that can compromise confidentiality, integrity, and availability of the victim’s system without explicit user consent. The weakness is described as CWE‑94, reflecting code injection via configuration.

Affected Systems

The vulnerable asset is CodeWhale by Hmbown. Version numbers before 0.8.64 are affected; no other products or vendors are listed in the CVE data.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity risk for remote code execution. The EPSS score is currently not available, and the vulnerability is not listed in the CISA KEV catalog, so no widespread exploits are reported yet. Nevertheless, the attack can be carried out simply by publishing a malicious repository that contains a modified configuration file; when a user or automated process clones and opens that repository with CodeWhale, the vulnerable configuration triggers execution of arbitrary shell commands. This makes the vulnerability particularly attractive to attackers who can redistribute compromised code via public or private repositories.

Generated by OpenCVE AI on August 18, 2026 at 16:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CodeWhale to version 0.8.64 or later, which corrects the allow_shell validation flaw.
  • If an upgrade is not possible, review any .codewhale/config.toml files in the repository and remove or set allow_shell to false before running the project.
  • Disable or remove the exec_shell and task_shell tools from the CodeWhale configuration to block shell execution in the event a malicious config file is present.

Generated by OpenCVE AI on August 18, 2026 at 16:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gx45-xrj5-g6c4 CodeWhale: Project config `allow_shell` override enables arbitrary shell command execution via cloned repository
History

Tue, 18 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Hmbown
Hmbown codewhale
Vendors & Products Hmbown
Hmbown codewhale

Tue, 18 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description CodeWhale versions before 0.8.64 fail to properly validate the allow_shell configuration parameter from project config files, allowing attackers to enable arbitrary shell command execution by committing a malicious .codewhale/config.toml file to a repository. When a user clones and opens the repository in CodeWhale, the AI model gains access to exec_shell and task_shell tools, enabling execution of arbitrary shell commands on the victim's machine without explicit user consent.
Title CodeWhale before 0.8.64 Remote Code Execution via allow_shell
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}


Subscriptions

Hmbown Codewhale
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T19:07:21.514Z

Reserved: 2026-08-18T15:05:54.225Z

Link: CVE-2026-75911

cve-icon Vulnrichment

Updated: 2026-08-18T19:06:59.207Z

cve-icon NVD

Status : Received

Published: 2026-08-18T16:18:23.057

Modified: 2026-08-18T20:17:33.760

Link: CVE-2026-75911

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:30:15Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')