CVE-2024-11394 json
Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability
published 2024-11-22 23 mo ago modified 2026-09-10 1 mo ago also GHSA-hxxf-235m-72v3 , PYSEC-2024-229 , EUVD-2024-34103
- cvss
- 8.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the handling of model files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-25012.
Patch / fix
- pypi transformers 4.48.0
- huggingface transformers 4.48.0
- github.com/huggingface/transformers#35296 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-11394 updated cvss 8.8
transformers: Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability
-
Red Hat OpenShift Lightspeed lightspeed-service-api-rhel9 Red Hat Enterprise Linux AI (RHEL AI) bootc-amd-rhel9, bootc-nvidia-rhel9, instructlab-amd-rhel9, bootc-azure-nvidia-rhel9, instructlab-nvidia-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
2.73% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | transformers | <4.48.0 |
4.48.0 |
Affected products
- Hugging Face Transformers
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/huggingface/transformers/pull/35296
web
-
zerodayinitiative.com
/advisories/ZDI-24-1515/
third-party-advisory, vdb-entry, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-11394
advisory
-
github.com
/huggingface/transformers/issues/34840
web
-
github.com
/huggingface/transformers
package
-
github.com
/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2024-229.yaml
web
-
zerodayinitiative.com
/advisories/ZDI-24-1515
web
-
github.com
/advisories/GHSA-hxxf-235m-72v3
advisory
Sources
- CVE List CVE-2024-11394
- GitHub Advisory GHSA-hxxf-235m-72v3
- NVD CVE-2024-11394
- OSV PYSEC-2024-229
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.