Description
CodeWhale versions before 0.8.64 fail to validate file paths in the project config instructions field, allowing attackers to read arbitrary files on the victim's system. A malicious .codewhale/config.toml file in a cloned repository can specify paths outside the workspace that are read and injected into the AI system prompt for exfiltration.
Published: 2026-08-18
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

CodeWhale before version 0.8.64 does not validate file paths referenced in the project configuration's instructions field. A crafted .codewhale/config.toml in a repository can specify absolute or relative paths that point outside the expected workspace. When CodeWhale processes the repository, it reads those files and injects their contents into the AI prompt. This flaw lets an attacker read arbitrary filesystem locations, potentially exposing sensitive data and enabling further exfiltration or credential leakage.

Affected Systems

Hmbown’s CodeWhale is affected for all releases prior to 0.8.64. Clients running any earlier version of the application are vulnerable to this file‑read issue. Based on the description, the flaw appears to be confined to the configuration instructions parsing component, with no other CodeWhale features reportedly impacted.

Risk and Exploitability

With a CVSS score of 8.7, the flaw carries a high severity rating. EPSS data is not available, but the attack requires delivering a malicious repository that contains a .codewhale/config.toml file. Based on the description, the likely attack vector involves a user or automated process cloning or importing a tainted repository into CodeWhale. Once processed, the attacker can read arbitrary files on the host of the CodeWhale instance, leading to confidentiality loss. The flaw is not listed in CISA’s KEV catalog, but based on patterns observed with similar file‑read flaws, zero‑day exploits can arise frequently, so vigilance is warranted.

Generated by OpenCVE AI on August 18, 2026 at 17:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CodeWhale to version 0.8.64 or later to remediate the path validation bug.
  • Restrict CodeWhale to only process repositories from trusted sources or verify the presence and correctness of .codewhale/config.toml before loading the instructions.
  • If upgrading is not immediately possible, manually delete or sanitize any .codewhale/config.toml files that reference locations outside the intended workspace before the AI system reads them, and consider disabling automatic prompt injection from configuration files.

Generated by OpenCVE AI on August 18, 2026 at 17:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-62f5-cp2p-vq95 CodeWhale: Project config `instructions` override enables arbitrary file read into AI system prompt via cloned repository
History

Tue, 18 Aug 2026 19:15: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 validate file paths in the project config instructions field, allowing attackers to read arbitrary files on the victim's system. A malicious .codewhale/config.toml file in a cloned repository can specify paths outside the workspace that are read and injected into the AI system prompt for exfiltration.
Title CodeWhale before 0.8.64 Arbitrary File Read via instructions
Weaknesses CWE-22
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Hmbown Codewhale
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-20T15:24:11.055Z

Reserved: 2026-08-18T11:03:08.682Z

Link: CVE-2026-75859

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T16:18:21.787

Modified: 2026-08-20T16:18:04.320

Link: CVE-2026-75859

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:00:10Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')