Description
CodeWhale versions before 0.8.64 contain an argument injection vulnerability in the git_blame tool that allows attackers to read arbitrary files by injecting git options into the unvalidated rev parameter. Attackers can supply rev values like --contents=/path/to/file to exfiltrate sensitive files such as SSH keys and credentials through the tool output returned to the model.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Hmbown | CodeWhale | 0.3.27 – < 0.8.41, 0.8.41 – < 0.8.64 | 0.8.41 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | codewhale-tui | >= 0.8.41, < 0.8.64 | 0.8.64 | GHSA-c6mw-8xh8-gpq6 |
| crates.io | deepseek-tui | >= 0.3.27, <= 0.8.41 | — | GHSA-c6mw-8xh8-gpq6 |
| npm | codewhale | >= 0.8.41, < 0.8.64 | 0.8.64 | GHSA-c6mw-8xh8-gpq6 |
| npm | deepseek-tui | >= 0.3.27, < 0.8.41 | 0.8.41 | GHSA-c6mw-8xh8-gpq6 |
References
- GitHub Security Advisory (GHSA-c6mw-8xh8-gpq6) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: CodeWhale before 0.8.64 Argument Injection via git_blame third-party-advisory