{"cve":"CVE-2024-3568","nvd":{"published":"2024-04-10T17:15:58.160","modified":"2026-06-17T07:44:32.020","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-502"],"references":["https://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125","https://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f","https://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125","https://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f"],"products":["huggingface:transformers"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-3568","score":0.02084,"percentile":0.8156,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-37q5-v5qm-c9v8","url":"https://osv.dev/vulnerability/GHSA-37q5-v5qm-c9v8","summary":"Transformers Deserialization of Untrusted Data vulnerability","modified":"2026-07-07T17:57:35.307551708Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.38.0"],"fixed":["4.38.0"]}]},{"id":"PYSEC-2026-1978","url":"https://osv.dev/vulnerability/PYSEC-2026-1978","summary":"Transformers Deserialization of Untrusted Data vulnerability","modified":"2026-07-07T17:48:11.555304072Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.38.0"],"fixed":["4.38.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}