Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Hmbown / CodeWhale | affected 0.8.8 before 0.8.41; unaffected 0.8.41 |
| Hmbown / CodeWhale | affected 0.8.8 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-22
References
- https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-62f5-cp2p-vq95
- https://github.com/Hmbown/CodeWhale/commit/43563356b98c6b993085554da82e77370160a31c
- https://www.vulncheck.com/advisories/codewhale-before-arbitrary-file-read-via-instructions
ADP enrichment
No English description supplied.
No references supplied.