Read the docs
TI-2026-42078 Aliases CVE-2026-58474GHSA-hfpc-7mr4-p297

whichllm < 0.5.16 Code Injection via run and snippet commands

Priority MEDIUM 41CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00858 58th percentileScored 2026-11-07
Fix Fixed whichllm (Andyyyy64): 0.5.16

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Andyyyy64whichllmbefore 0.5.160.5.16Patch availableCNA
  • whichllm VendorAndyyyy64 Affected before 0.5.16 Fixed in 0.5.16 Patch available CNA

Remediation

  • Fix · CNA whichllm (Andyyyy64) Fixed in 0.5.16

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-58474
  2. 2026-10-03 Alias added: GHSA-hfpc-7mr4-p297

References

Sources