Deserialization in Huggingface Huggingface/transformers
CVE-2024-3568
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.6 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.021 (80.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 81st percentile — 80.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.021 · newest: 0.021 · change: 0.000
Affected products
- Huggingface Huggingface/transformers — versions unspecified
- Huggingface Transformers
Weakness classification (CWE)
Public proof-of-concept exploits
References
- huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f (Exploit, Third Party Advisory)
- github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07… (Patch)
Frequently asked questions
- What is CVE-2024-3568?
- CVE-2024-3568 is a critical-severity vulnerability in Huggingface Huggingface/transformers, classified under Deserialization of Untrusted Data. CVSS score: 9.6/10. Published 2024-04-10.
- How severe is CVE-2024-3568?
- Critical severity. CVSS v3 base score is 9.6 out of 10.
- Is CVE-2024-3568 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.