CVE-2024-11394
JSON

8.8high

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability

Severity
8.8high CVSS:3.0 by zdi
Exploit likelihood
2.79% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
zdi
Also known as
GHSA-hxxf-235m-72v3PYSEC-2024-229

Description

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the handling of model files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-25012.

Affected

Product or packageVersionsReported by
Hugging Face Transformers026a173a64372e9602a16523b8fae9de4b0ff428CVE List
transformers (PyPI)before 4.48.0GitHub Advisory Database, PyPA Advisory Database
huggingface transformersbefore 4.48.0NVD

All scores

zdi8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the handling of model files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-25012.

NVD (es)

Vulnerabilidad de ejecución remota de código de datos no confiables en Hugging Face Transformers Trax Model. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario en las instalaciones afectadas de Hugging Face Transformers. Se requiere la interacción del usuario para explotar esta vulnerabilidad, ya que el objetivo debe visitar una página maliciosa o abrir un archivo malicioso. La falla específica existe en el manejo de archivos de modelo. El problema es el resultado de la falta de una validación adecuada de los datos proporcionados por el usuario, lo que puede provocar la deserialización de datos no confiables. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto del usuario actual. Era ZDI-CAN-25012.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-11394 changed 2024-12-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-hxxf-235m-72v3 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-11394 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-229 changed 2026-06-10CC-BY-4.0