CVE-2024-3568: Arbitrary Code Execution via Deserialization in huggingface/transformers
Vulnerability summary
CVE-2024-3568 is a critical (CVSS 9.6) Deserialization of Untrusted Data vulnerability in huggingface huggingface/transformers. EPSS estimates a 2.08% chance of exploitation in the next 30 days, higher than 81.5% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 3.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 10-04-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated3.4LowCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L
- NVDNIST3.4LowCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L
EPSS trend
Probability
2.08%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.08% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Huggingface2 products
- huggingface/transformers≥ unspecified, < 4.38
- transformers< 4.38.0
PyPI1 product
- transformers< 4.38.0
2 vendors · 3 products