CVE-2026-58474CWE-94code-injection

CVE-2026-58474

High · published August 26, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
58.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
8.6 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00858 · 58.0th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-08-26T22:16Z
References (4)
EPSS history
Timeline
  • 28 AUG 06:47Z
    EPSS moved — → 0%
    epss
  • 26 AUG 17:49Z
    whichllm < 0.5.16 Code Injection via run and snippet commands
    cvelistv5