CVE-2025-14927
JSON

7.8high

Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability

Severity
7.8high CVSS:3.0 by zdi
Exploit likelihood
0.39% (higher than 25% of CVEs)
Published
Last changed
Assigned by
zdi
Also known as
PYSEC-2025-215

Description

Hugging Face Transformers SEW-D convert_config Code Injection 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 convert a malicious checkpoint. The specific flaw exists within the convert_config function. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the current user. . Was ZDI-CAN-28252.

Affected

Product or packageVersionsReported by
Hugging Face Transformers4.57.0CVE List
huggingface transformers4.57.0NVD
transformers (PyPI)up to 4.57.0PyPA Advisory Database

All scores

zdi7.8high CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database7.8high CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-94

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

What each source says

CVE List

Hugging Face Transformers SEW-D convert_config Code Injection 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 convert a malicious checkpoint. The specific flaw exists within the convert_config function. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the current user. . Was ZDI-CAN-28252.

NVD (es)

Vulnerabilidad de inyección de código y ejecución remota de código (RCE) en SEW-D convert_config 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 convertir un checkpoint malicioso.\n\nEl fallo específico existe dentro de la función convert_config. El problema se debe a la falta de validación adecuada de una cadena suministrada por el usuario antes de usarla para ejecutar código Python. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto del usuario actual.\n\nFue ZDI-CAN-28252.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-14927 changed 2025-12-24CVE Terms of Use
NVDCVE-2025-14927 changed 2026-10-19Public domain
PyPA Advisory DatabasePYSEC-2025-215 changed 2026-05-21CC-BY-4.0