{"id":"CVE-2026-58474","aliases":[],"url":"https://o3.security/vulnerability/CVE-2026-58474","summary":"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…","details":"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.","published":"2026-08-26T18:16:42.760","modified":"2026-08-26T18:16:42.760","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[],"fix":{"url":"https://github.com/Andyyyy64/whichllm/commit/77e8dc9e8b45212c694d631d758623e17a00859e","label":"Andyyyy64/whichllm@77e8dc9"},"references":[{"type":"WEB","url":"https://github.com/Andyyyy64/whichllm/commit/77e8dc9e8b45212c694d631d758623e17a00859e"},{"type":"WEB","url":"https://github.com/Andyyyy64/whichllm/pull/147"},{"type":"WEB","url":"https://github.com/Andyyyy64/whichllm/releases/tag/v0.5.16"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/whichllm-code-injection-via-run-and-snippet-commands"}],"provenance":{"sources":["OSV.dev","NVD","FIRST.org (EPSS)"],"lastVerified":"2026-08-26T18:16:42.760"}}