Live threats

All CVEs / Huggingface

CVE-2024-3568Huggingface Transformers

Critical 9.6 No auth needed

Priority
73
CVSS 3.1
9.6
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Apr 10, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Transformers.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI transformers < 4.38.0 4.38.0 pip install "transformers>=4.38.0"
PyPI transformers < 4.38.0 4.38.0 pip install "transformers>=4.38.0"

Per OSV / GitHub Advisories (GHSA-37q5-v5qm-c9v8, PYSEC-2026-1978). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
huggingfacetransformers< 4.38.0

Official sources

References

Links published by the sources. Open them with care.