SEPTEMBER 18, 2026
Live Feed
Back to database
Case File

CVE-2026-58474

HIGH · CVSS 8.8 EPSS 0.46% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-08-26 · Last synced 2026-09-18

CyberRota Analysis

AI-Generated

A code injection vulnerability exists in whichllm versions prior to 0.5.16, allowing remote attackers to execute arbitrary code on users' machines by manipulating GGUF filenames with special characters. This flaw arises from the improper handling of user-controlled input in the script generation function, which directly interpolates values into Python source code without adequate escaping. Organizations utilizing whichllm for model execution, particularly those integrating with HuggingFace repositories, should prioritize patching this vulnerability to mitigate the risk of unauthorized code execution.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

Detected Signals
arbitrary code execution code execution

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-58474
Severity
HIGH
CVSS
8.8
EPSS
0.46%

Original NVD Description

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.