CodeWhale Package Vulnerability: Potential Privilege Escalation
- Severity
- HIGH
- Affected component
- codewhale (cargo)
- Patched version
- 0.8.64
An early warning has been issued for a vulnerability in the CodeWhale package that could allow LLM-controlled input to be sent to a running shell without an approval prompt, potentially leading to privilege escalation. Versions before 0.8.64 are reportedly affected.
What happened
The CodeWhale package, specifically versions before 0.8.64, appears to have a vulnerability that allows LLM-controlled input to be sent to a running shell without an approval prompt. This could potentially lead to privilege escalation. The vulnerability is tracked under GHSA-G29H-PFMP-QP9R and was first flagged on 2026-09-04T18:02:10+00:00. To assess your exposure, check if your system uses CodeWhale and if the version is before 0.8.64.
Multiple advisories have been published regarding various vulnerabilities in CodeWhale, including arbitrary file read, SSRF bypass, argument injection, and arbitrary shell command execution. These vulnerabilities highlight the importance of keeping software dependencies up to date and monitoring security advisories.
What to do about it
- Upgrade CodeWhale to version 0.8.64 or later to mitigate the risk of privilege escalation.
- Review your system for any use of CodeWhale and ensure it is updated to the latest secure version.
- Monitor the primary sources for any updates or additional advisories related to CodeWhale.
- Consider implementing additional security measures to prevent unauthorized shell access and privilege escalation.
How 0Day would have caught this
codewhale is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.
Frequently asked questions
Am I affected?
You are affected if you are using CodeWhale package versions before 0.8.64.
What should I do right now?
Upgrade CodeWhale to version 0.8.64 or later immediately.
Where can I find more information about this vulnerability?
Consult the primary sources listed in the threat data for detailed advisories and updates.
Are there any known exploits in the wild?
No, this vulnerability has not been reported as exploited in the wild.
Sources
- [GHSA-62f5-cp2p-vq95] CodeWhale: Project config `instructions` override enables arbitrary file read into AI system prompt via cloned repository
- [GHSA-6v2g-fpxh-pmmh] CodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinning
- [GHSA-7j5w-7r7x-9v27] CodeWhale: Argument Injection in `git_show` Tool Allows Arbitrary File Write Without Approval
- [GHSA-c6mw-8xh8-gpq6] CodeWhale: Argument Injection in `git_blame` Tool Allows Arbitrary File Read Without Approval
- [GHSA-g29h-pfmp-qp9r] CodeWhale: exec_shell_interact sends LLM-controlled input to a running shell without an approval prompt (privilege escalation)
- [GHSA-gx45-xrj5-g6c4] CodeWhale: Project config `allow_shell` override enables arbitrary shell command execution via cloned repository
- [GHSA-h539-c7r8-3xq4] CodeWhale: js_execution leaks parent environment to model context via missing env scrub
- [GHSA-6v2g-fpxh-pmmh] CodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinning