CVE-2024-11393
JSON

8.8high

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

Severity
8.8high CVSS:3.0 by zdi
Exploit likelihood
3.27% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
zdi
Also known as
GHSA-wrfc-pvp9-mr9gPYSEC-2024-228

Description

Hugging Face Transformers MaskFormer 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 parsing 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-25191.

Affected

Product or packageVersionsReported by
Hugging Face Transformers8820fe8b8c4b9da94cf1e4761876f85c562e0efeCVE 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 MaskFormer 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 parsing 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-25191.

NVD (es)

Vulnerabilidad de ejecución remota de código de deserialización de datos no confiables en Hugging Face Transformers MaskFormer Model. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario en 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 dentro del análisis 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 resultar en 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-25191.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-11393 changed 2024-12-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-wrfc-pvp9-mr9g changed 2026-09-10CC-BY-4.0
NVDCVE-2024-11393 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-228 changed 2026-06-10CC-BY-4.0