CVE-2025-14931
JSON

10.0critical

Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability

Severity
10.0critical CVSS:3.0 by zdi
Exploit likelihood
1.53% (higher than 75% of CVEs)
Published
Last changed
Assigned by
zdi
Also known as
GHSA-q9r5-6hrr-9ph7PYSEC-2026-543

Description

Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face smolagents. Authentication is not required to exploit this vulnerability. The specific flaw exists within the parsing of pickle data. 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 service account. Was ZDI-CAN-28312.

Affected

Product or packageVersionsReported by
Hugging Face smolagents1.22.0CVE List
smolagents (PyPI)up to 1.23.0GitHub Advisory Database, PyPA Advisory Database

All scores

zdi10.0critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub10.0critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
PyPA Advisory Database10.0critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-502

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

What each source says

CVE List

Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face smolagents. Authentication is not required to exploit this vulnerability. The specific flaw exists within the parsing of pickle data. 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 service account. Was ZDI-CAN-28312.

NVD (es)

Vulnerabilidad de ejecución remota de código por deserialización de datos no confiables en el Ejecutor remoto de Python de Hugging Face smolagents. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario en instalaciones afectadas de Hugging Face smolagents. No se requiere autenticación para explotar esta vulnerabilidad.\n\nEl fallo específico existe dentro del análisis de datos pickle. El problema se debe a la falta de 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 de la cuenta de servicio. Fue ZDI-CAN-28312.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-14931 changed 2025-12-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-q9r5-6hrr-9ph7 changed 2026-06-29CC-BY-4.0
NVDCVE-2025-14931 changed 2026-10-19Public domain
PyPA Advisory DatabasePYSEC-2026-543 changed 2026-07-01CC-BY-4.0