Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Hmbown / CodeWhale | affected 0.8.6 before 0.8.41; unaffected 0.8.41 |
| Hmbown / CodeWhale | affected 0.8.6 before 0.8.41; unaffected 0.8.41 |
| Hmbown / CodeWhale | affected 0.8.41 before 0.8.64; unaffected 0.8.64 |
| Hmbown / CodeWhale | affected 0.8.41 before 0.8.64; unaffected 0.8.64 |
CWE
CWE-94
References
- https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-gx45-xrj5-g6c4
- https://github.com/Hmbown/CodeWhale/commit/43563356b98c6b993085554da82e77370160a31c
- https://www.vulncheck.com/advisories/codewhale-before-remote-code-execution-via-allow-shell
ADP enrichment
No English description supplied.