{"id":"CVE-2024-3568","aliases":["CVE-2024-3568","GHSA-37q5-v5qm-c9v8","PYSEC-2026-1978"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Execution via Deserialization in huggingface/transformers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"La librería huggingface/transformers es vulnerable a la ejecución de código arbitrario a través de la deserialización de datos no confiables dentro de la función `load_repo_checkpoint()` de la clase `TFPreTrainedModel()`. Los atacantes pueden ejecutar código y comandos arbitrarios creando una carga serializada maliciosa, explotando el uso de `pickle.load()` en datos de fuentes potencialmente no confiables. Esta vulnerabilidad permite la ejecución remota de código (RCE) al engañar a las víctimas para que carguen un punto de control aparentemente inofensivo durante un proceso de entrenamiento normal, lo que permite a los atacantes ejecutar código arbitrario en la máquina de destino.","source":"nvd"}],"published":"2024-04-10T17:07:55.667Z","modified":"2026-07-07T17:57:35.307Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L","score":3.4,"rating":"LOW"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L","score":3.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L","score":3.4,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L","score":3.4,"rating":"LOW"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.38","status":"affected"}],"vendor":"huggingface","product":"huggingface/transformers","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.38.0"}],"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.38.0"}],"vendor":"huggingface","product":"transformers","cpe":"cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.38.0"}],"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/b3c36992-5264-4d7f-9906-a996efafba8f","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/huggingface/transformers/commit/693667b8ac8138b83f8adb6522ddaf42fa07c125","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3568","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/huggingface/transformers","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/transformers","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-37q5-v5qm-c9v8","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-14T17:57:26.600Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3568","url":"https://www.cve.org/CVERecord?id=CVE-2024-3568","licence":"CVE Terms of Use","modified":"2024-08-01T20:12:07.859Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-37q5-v5qm-c9v8","url":"https://github.com/advisories/GHSA-37q5-v5qm-c9v8","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:35.307Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3568","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3568","licence":"Public domain","modified":"2026-06-17T07:44:32.020Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1978","url":"https://osv.dev/vulnerability/PYSEC-2026-1978","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:11.555Z"}],"updatedAt":"2026-11-25T22:58:39.066Z","epss":{"score":0.02084,"percentile":0.821,"date":"2026-12-01T12:00:22.000Z"}}