Back to CVE records
High 8.8Published Aug 26, 2026

CVE-2026-58474whichllm < 0.5.16 Code Injection via run and snippet commands

Updated under an hour ago ()

Does this affect you?

It affects Andyyyy64 whichllm. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.8 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
VulnCheck
NVD analysis
Deferred
Record last updated
Aug 29, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Andyyyy64 whichllm
andyyyy64:whichllm (from the name)
before 0.5.16
CNA record

References

  • release-notes
  • issue-tracking, patch
  • patch
  • third-party-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.