From 747eb7550d3cf3f52bf1ba04ea706b62e2fbb4df Mon Sep 17 00:00:00 2001 From: andy <105579829+Andyyyy64@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:16:13 +0900 Subject: [PATCH] Improve GHSA-hfpc-7mr4-p297 --- .../GHSA-hfpc-7mr4-p297.json | 35 +++++++++++++++---- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/advisories/unreviewed/2026/08/GHSA-hfpc-7mr4-p297/GHSA-hfpc-7mr4-p297.json b/advisories/unreviewed/2026/08/GHSA-hfpc-7mr4-p297/GHSA-hfpc-7mr4-p297.json index 8b73a20bb865..9e83ebc9ea45 100644 --- a/advisories/unreviewed/2026/08/GHSA-hfpc-7mr4-p297/GHSA-hfpc-7mr4-p297.json +++ b/advisories/unreviewed/2026/08/GHSA-hfpc-7mr4-p297/GHSA-hfpc-7mr4-p297.json @@ -1,23 +1,40 @@ { "schema_version": "1.4.0", "id": "GHSA-hfpc-7mr4-p297", - "modified": "2026-08-26T18:31:57Z", + "modified": "2026-08-26T18:32:04Z", "published": "2026-08-26T18:31:57Z", "aliases": [ "CVE-2026-58474" ], + "summary": "whichllm < 0.5.16 code injection via run and snippet commands", "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.", "severity": [ - { - "type": "CVSS_V3", - "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" - }, { "type": "CVSS_V4", - "score": "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" + "score": "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" + } + ], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "whichllm" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.5.16" + } + ] + } + ] } ], - "affected": [], "references": [ { "type": "ADVISORY", @@ -31,6 +48,10 @@ "type": "WEB", "url": "https://github.com/Andyyyy64/whichllm/commit/77e8dc9e8b45212c694d631d758623e17a00859e" }, + { + "type": "PACKAGE", + "url": "https://github.com/Andyyyy64/whichllm" + }, { "type": "WEB", "url": "https://github.com/Andyyyy64/whichllm/releases/tag/v0.5.16"