From 14dd896fcfe8a0f25c0b3ac3e64e1fc3d2689163 Mon Sep 17 00:00:00 2001 From: Aaron Levy Date: Fri, 29 May 2026 12:35:15 -0700 Subject: [PATCH] Improve GHSA-29pf-2h5f-8g72 --- .../GHSA-29pf-2h5f-8g72.json | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/advisories/unreviewed/2026/05/GHSA-29pf-2h5f-8g72/GHSA-29pf-2h5f-8g72.json b/advisories/unreviewed/2026/05/GHSA-29pf-2h5f-8g72/GHSA-29pf-2h5f-8g72.json index 4cf55bb157cf3..b1ce2f566d16f 100644 --- a/advisories/unreviewed/2026/05/GHSA-29pf-2h5f-8g72/GHSA-29pf-2h5f-8g72.json +++ b/advisories/unreviewed/2026/05/GHSA-29pf-2h5f-8g72/GHSA-29pf-2h5f-8g72.json @@ -1,11 +1,12 @@ { "schema_version": "1.4.0", "id": "GHSA-29pf-2h5f-8g72", - "modified": "2026-05-26T13:30:33Z", + "modified": "2026-05-26T13:30:34Z", "published": "2026-05-26T13:30:33Z", "aliases": [ "CVE-2026-4372" ], + "summary": "Remote Code Execution Vulnerability in HuggingFace Transformers prior to 5.3.0", "details": "A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library prior to version 5.3.0. The vulnerability allows an attacker to craft a malicious `config.json` file containing the `_attn_implementation_internal` field set to an attacker-controlled HuggingFace Hub repository ID. When a victim loads this model using the standard `AutoModelForCausalLM.from_pretrained()` API, the library downloads and executes arbitrary Python code from the attacker's repository with the victim's full OS privileges. This issue arises due to unfiltered deserialization of configuration attributes, insufficient sanitization of internal fields, and unsandboxed execution of downloaded kernels. The vulnerability bypasses the `trust_remote_code` security mechanism, is invisible to the victim, and exploits the standard documented usage pattern, making it particularly severe. Users are advised to upgrade to version 5.3.0 or later to mitigate this issue.", "severity": [ { @@ -13,7 +14,27 @@ "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" } ], - "affected": [], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "transformers" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "5.3.0" + } + ] + } + ] + } + ], "references": [ { "type": "ADVISORY",