Arbitrary Code Execution via Deserialization in huggingface/transformers (huggingface huggingface/transformers)

CVE-2024-3568
LOW 3.4

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

VersionScoreVecteurÉvalué par
CVSS 3.0LOW 3.4CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L@huntr_ai
CVSS 3.1CRITICAL 9.6CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.0LOW 3.4CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:LNVD · security@huntr.dev (Secondary)

Avis

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
huggingface · huggingface/transformersaffected unspecified < 4.38

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD