CVE-2026-58474

published 26 Aug 2026 · updated 29 Aug 2026

whichllm < 0.5.16 Code Injection via run and snippet commands

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.5.16.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Andyyyy64<0.5.160.5.16

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-58474 severity on Zeptric[![CVE-2026-58474](https://zeptric.io/badge/cve/CVE-2026-58474.svg)](https://zeptric.io/cve/CVE-2026-58474)