PT-2026-82234 · Whichllm · Whichllm
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
whichllm versions prior to 0.5.16
Description
A code injection issue exists in the
run and snippet commands. A remote attacker controlling a HuggingFace repository can 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 values derived from HuggingFace, specifically the rfilename field from the Hub API siblings, directly into Python source code without escaping. This allows 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.Recommendations
Update to version 0.5.16 or later.
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Whichllm