CVE-2026-58474: Andyyyy64 whichllm · Code Injection
Affects Andyyyy64 whichllmSource CVE Database V5
Not known to be exploited · CVSS 8.6 High : upgrade to 0.5.16 soon.
Data as of 25 Nov 2026, 14:04 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.16
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 26 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Upgrade Andyyyy64 whichllm to 0.5.16.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Andyyyy64whichllm | Affected
| Fixed in– |
GitHubwhichllmpkg:github/whichllmOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should avoid running the vulnerable run and snippet commands with untrusted HuggingFace repositories or GGUF filenames. Validate and sanitize inputs derived from external sources before use in code generation contexts.
Description
whichllm versions before 0.5.16 contain a code injection vulnerability in the run and snippet commands. This flaw allows a remote attacker controlling a HuggingFace repository to execute arbitrary code by crafting a malicious GGUF filename with special characters. The vulnerability arises because the script generation function in cli.py directly interpolates unescaped HuggingFace-derived values into Python source code, enabling code injection before any model download occurs.
References
- github.com/Andyyyy64/whichllm/releases/tag/v0.5.16 (opens in a new tab)
- github.com/Andyyyy64/whichllm/pull/147 (opens in a new tab)
- github.com/Andyyyy64/whichllm/commit/77e8dc9e8b45212c694d631d758623e17a00859e (opens in a new tab)
- vulncheck.com/advisories/whichllm-code-injection-via-run-and-snippet-commands (opens in a new tab)