7.8high
Hugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerability
- Severity
- 7.8high CVSS:3.0 by zdi
- Exploit likelihood
- 0.74% (higher than 51% of CVEs)
- Published
- Last changed
- Assigned by
- zdi
- Also known as
- PYSEC-2025-211
Description
Hugging Face Transformers Perceiver 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-25423.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Hugging Face Transformers | 9c8bd3fc1befe54f3efb9f385561eef49f060a70 | CVE List |
| huggingface transformers | 4.54.1 | NVD |
| transformers (PyPI) | up to 4.54.1 | PyPA Advisory Database |
All scores
| zdi | 7.8high CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 7.8high CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Hugging Face Transformers Perceiver 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-25423.
NVD (es)
Vulnerabilidad de ejecución remota de código por deserialización de datos no confiables en el modelo Perceiver de Hugging Face Transformers. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario en instalaciones afectadas de Hugging Face Transformers. Se requiere interacción del usuario para explotar esta vulnerabilidad, ya que el objetivo debe visitar una página maliciosa o abrir un archivo malicioso.\n\nEl fallo específico existe dentro del análisis de los archivos de modelo. El problema se debe a la falta de una validación adecuada de los datos suministrados 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. Fue ZDI-CAN-25423.
References
| https://www.zerodayinitiative.com/advisories/ZDI-25-1150/ | advisory, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-14920 changed 2025-12-24 | CVE Terms of Use |
| NVD | CVE-2025-14920 changed 2026-10-19 | Public domain |
| PyPA Advisory Database | PYSEC-2025-211 changed 2026-05-21 | CC-BY-4.0 |