RCE in Andyyyy64 Whichllm
CVE-2026-58474
whichllm before 0.5.16 contains a code injection vulnerability in the run and snippet commands that allows a remote attacker who controls a HuggingFace repository to achieve arbitrary code execution by crafting a malicious GGUF filename containing double quotes or other special characters. The script generation function in cli.py interpolates HuggingFace-derived values, including GGUF variant filenames from the Hub API siblings rfilename field, directly into Python source code without escaping, allowing the crafted filename to break out of the generated string literal and execute injected code on the user's machine before any model download occurs.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.009 (57.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 57th percentile — 57.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.009 · change: +0.004
Affected products
Weakness classification (CWE)
References
- github.com/Andyyyy64/whichllm/releases/tag/v0.5.16 (release-notes)
- github.com/Andyyyy64/whichllm/pull/147 (issue-tracking, patch)
- github.com/Andyyyy64/whichllm/commit/77e8dc9e8b45212c694d631d758623e17a00859e (patch)
- www.vulncheck.com/advisories/whichllm-code-injection-via-run-and-snippet-comman… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-58474?
- CVE-2026-58474 is a high-severity vulnerability in Andyyyy64 Whichllm, classified under Code Injection. CVSS score: 8.8/10. Published 2026-08-26.
- How severe is CVE-2026-58474?
- High severity. CVSS v3 base score is 8.8 out of 10.