Arbitrary Code Execution via Deserialization in huggingface/transformers (huggingface huggingface/transformers)
En bref
- Source
- NVD
- EPSS
- EPSS 2.08 % · centile 82 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- @huntr_ai
- Statut NVD
- Analyzed
Description
The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data within the `load_repo_checkpoint()` function of the `TFPreTrainedModel()` class. Attackers can execute arbitrary code and commands by crafting a malicious serialized payload, exploiting the use of `pickle.load()` on data from potentially untrusted sources. This vulnerability allows for remote code execution (RCE) by deceiving victims into loading a seemingly harmless checkpoint during a normal training process, thereby enabling attackers to execute arbitrary code on the targeted machine.
Faiblesses (CWE)
- CWE-502 — Désérialisation de données non fiables
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.0 | LOW 3.4 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L | @huntr_ai |
| CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 3.0 | LOW 3.4 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L | NVD · security@huntr.dev (Secondary) |
Avis
- GHSA-37q5-v5qm-c9v8 — Transformers Deserialization of Untrusted Data vulnerability
- PYSEC-2026-1978 — Transformers Deserialization of Untrusted Data vulnerability
Références européennes
- ENISA EUVD · EUVD-2024-1077
- GCVE · GCVE-0-2024-3568
Avis du CERT-FR
- CERTFR-2024-AVI-0670 — Multiples vulnérabilités dans Splunk Machine Learning Toolkit · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*< 4.38.0
Produits affectés
| Produit | Versions |
|---|---|
| huggingface · huggingface/transformers | affected unspecified < 4.38 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |