CVE-2026-58474
Last modified
CVE-2026-58474 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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..
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Andyyyy64 | whichllm | < 0.5.16 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-58474?
How severe is CVE-2026-58474?
How do I fix CVE-2026-58474?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58469GNU Wget through 1.25.0, fixed in commit 37a40fc, contains a…8.7
- CVE-2026-5847A vulnerability has been found in code-projects Movie Ticket…4.3
- CVE-2026-58470GNU Wget through 1.25.0, fixed in commit 43d3ba9, contains a…6.9
- CVE-2026-58471GNU Wget through 1.25.0, fixed in commit c2640fe, contains a…7.1
- CVE-2026-58472GNU Wget through 1.25.0, fixed in commit dd692d9, contains a…7.1
- CVE-2026-58473Cognee before 1.2.0 contains an improper access control vuln…9.3
- CVE-2026-58475Sustainable Irrigation Platform (SIP) through version 5.2.16…6.1
- CVE-2026-58476Sustainable Irrigation Platform (SIP) through version 5.2.16…8.1
- CVE-2026-58477Sustainable Irrigation Platform (SIP) through version 5.2.16…7.5
- CVE-2026-58478Sustainable Irrigation Platform (SIP) through version 5.2.16…6.5
- CVE-2026-58479Sustainable Irrigation Platform (SIP) through version 5.2.16…9.8
- CVE-2026-5848A vulnerability was found in jeecgboot JimuReport up to 2.3.…4.7
Are you affected by CVE-2026-58474?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
