# CVE-2024-3568: Arbitrary Code Execution via Deserialization in huggingface/transformers

- Severity: Low 3.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.08%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-10T17:07:55.667Z
- Modified: 2026-07-07T17:57:35.307Z
- Also known as: GHSA-37q5-v5qm-c9v8, PYSEC-2026-1978
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- huggingface huggingface/transformers: from unspecified before 4.38
- transformers (PyPI): before 4.38.0
- huggingface transformers: before 4.38.0

## Every score

- @huntr_ai: CVSS:3.0 3.4 Low `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L`
- GitHub: CVSS:3.0 3.4 Low `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 3.4 Low `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L`

## References

- <https://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f> (exploit, third-party-advisory, web)
- <https://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3568> (advisory)
- <https://github.com/huggingface/transformers> (package)
- <https://pypi.org/project/transformers> (package)
- <https://github.com/advisories/GHSA-37q5-v5qm-c9v8> (advisory)

## Sources

- CVE List: [CVE-2024-3568](https://www.cve.org/CVERecord?id=CVE-2024-3568), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-37q5-v5qm-c9v8](https://github.com/advisories/GHSA-37q5-v5qm-c9v8), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-3568](https://nvd.nist.gov/vuln/detail/CVE-2024-3568), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1978](https://osv.dev/vulnerability/PYSEC-2026-1978), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-3568 · Whole record: https://cve.day/CVE-2024-3568.json · Rebuilt by cve.day 2026-11-25T22:58:39.066Z
