{"id":"CVE-2024-3568","summary":"Arbitrary Code Execution via Deserialization in huggingface/transformers","details":"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.","aliases":["GHSA-37q5-v5qm-c9v8","PYSEC-2026-1978"],"modified":"2026-09-17T03:45:31.642316144Z","published":"2024-04-10T17:07:55.667Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-502"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3568.json","unresolved_ranges":[{"extracted_events":[{"fixed":"4.38"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3568.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3568"},{"type":"FIX","url":"https://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/huggingface/transformers","events":[{"introduced":"0"},{"fixed":"693667b8ac8138b83f8adb6522ddaf42fa07c125"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v4.33.1","v4.16.0","v4.15.0","v4.14.0","v4.13.0","v4.12.0","v4.11.0","v4.10.0","v4.9.0","v4.8.0","v4.7.0","v4.6.0","v4.5.0","v4.4.0","v4.3.0.rc1","4.3.0.rc1","v4.2.0","v4.1.1","v4.1.0","v3.5.0","v3.4.0","v3.3.1","v3.3.0","v3.2.0","v3.1.0","v3.0.2","v3.0.1","3.0.1","v3.0.0","v2.11.0","v2.10.0","v2.9.1","v2.9.0","v2.8.0","v2.7.0","v2.6.0","v2.5.1","v2.5.0","v2.4.1","v2.4.0","v2.3.0","v2.2.2","v2.2.1","v2.2.0","v2.1.1","v2.1.0","v2.0.0","1.2.0","1.1.0","1.0","v0.6.2","v0.6.1","v0.6.0","v0.5.1","v0.5.0","0.5.0","v0.4.0","v0.3.0","v0.2.0","v0.1.2","0.1.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-3568.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L"}]}