{"id":"CVE-2024-3568","published":"2024-04-10T17:07:55Z","modified":"2024-08-01T20:12:07Z","title":"Arbitrary Code Execution via Deserialization in huggingface/transformers","vendor":"huggingface","product":"huggingface/transformers","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.4,"severity":"LOW","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02084,"percentile":0.82021,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f","tags":[]},{"url":"https://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125","tags":[]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":16.4},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.38}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-07-10","earliestUrl":"https://github.com/rooobeam/Pickle-Deserialization-Exploit-in-Transformers","repos":[{"name":"rooobeam/Pickle-Deserialization-Exploit-in-Transformers","url":"https://github.com/rooobeam/Pickle-Deserialization-Exploit-in-Transformers","stars":0,"created":"2025-07-10"}]},"first":{"date":"2025-07-10","source":"PoC-in-GitHub","url":"https://github.com/rooobeam/Pickle-Deserialization-Exploit-in-Transformers"},"provenance":"source"},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[">= unspecified, < 4.38"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-14T17:57:26.600369Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"transformers","vulnerableRanges":["<4.38.0"],"patched":["4.38.0"],"from":["GHSA-37q5-v5qm-c9v8","PYSEC-2026-1978"],"provenance":"source"}],"summary":{"text":"The huggingface/transformers library is vulnerable to deserialization of untrusted data in the load_repo_checkpoint() function of the TFPreTrainedModel() class, where pickle.load() is applied to data from potentially untrusted sources. An attacker who crafts a malicious serialized checkpoint can achieve arbitrary code execution on the victim's machine by tricking them into loading it during a normal training process, which requires network access and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:23Z"},"euvd":{"id":"EUVD-2024-1077","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-2800","published":"2023-05-18","fixed":"4.30.0","kev":false},{"cve":"CVE-2023-6730","published":"2023-12-19","fixed":"4.36.0","kev":false},{"cve":"CVE-2023-7018","published":"2023-12-20","fixed":"4.36.0","kev":false,"link":{"from":"CVE-2023-7018","to":"CVE-2024-3568","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:transformers","fromFixed":"4.36.0","toFixed":"4.38.0","daysApart":112}]}},{"cve":"CVE-2024-3568","published":"2024-04-10","fixed":"4.38.0","kev":false},{"cve":"CVE-2024-11392","published":"2024-11-22","fixed":"4.48.0","kev":false},{"cve":"CVE-2024-11393","published":"2024-11-22","fixed":"4.48.0","kev":false},{"cve":"CVE-2024-11394","published":"2024-11-22","fixed":"4.48.0","kev":false}],"package":"PyPI:transformers"}}