CVE-2026-58474: whichllm before 0.5.16 contains a code injection vulnerability in the run and snippet commands that allows a remote atta
Summary
whichllm (a tool for working with LLMs) versions before 0.5.16 have a code injection vulnerability in the run and snippet commands that lets a remote attacker execute arbitrary code (running commands they choose on your computer). The vulnerability exists because the tool takes filenames from HuggingFace (a model repository) and puts them directly into Python code without checking them first, so a specially crafted filename with special characters can break out and run malicious code before the model is even downloaded.
Solution / Mitigation
Update whichllm to version 0.5.16 or later.
Vulnerability Details
8.8(high)
EPSS: 0.0%
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
network
low
none
required
August 26, 2026
Classification
Taxonomy References
Affected Vendors
Related Issues
CVE-2026-63086: text-generation-inference through 3.3.7 contains a server-side request forgery (SSRF) vulnerability in the OpenAI-compat
CVE-2026-34371: LibreChat is a ChatGPT clone with additional features. Prior to 0.8.4, LibreChat trusts the name field returned by the e
Original source: https://nvd.nist.gov/vuln/detail/CVE-2026-58474
First tracked: August 26, 2026 at 08:08 PM
Classified by LLM (prompt v3) · confidence: 92%