CVE-2026-80047: fallo de gravedad alta en Hugging Face Transformers
Hugging Face Transformers library writes remote code to disk prior to consent check
Publicada el · Actualizada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
21Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 7.8epss 0.1%
A vulnerability in Hugging Face Transformers (versions 4.57.0 to 5.16.1) allows remote Python files to be written to local disk without user consent when using GenerativePreTrainedModel.load_custom_generate(). The function fetches and caches a remote module file before performing the required trust_remote_code consent check, inverting the security model enforced by other code-loading paths (such as AutoConfig, AutoModel, and AutoTokenizer). As a result, attacker‑controlled Python code from custom_generate/generate.py is copied into the user’s ~/.cache/huggingface/modules directory even if the user declines the trust prompt. Although execution is correctly gated, the file write is not reversible and can persist across sessions. This can lead to persistent, unauthorized files on disk and stale cache collisions where cached attacker code may later be executed during trusted model loads. The issue stems from an unconditional file write in dynamic_module_utils.py prior to any trust verification.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Productos afectados
Hugging Face · TransformersCVEs relacionadas — Hugging Face Transformers
En el mismo producto, de las más peligrosas a las menos.
CVE-2024-11392HIGHHugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution VulnerabilityEPSS 7.7%CVE-2024-11393HIGHHugging Face Transformers MaskFormer Model Deserialization of Untrusted Data Remote Code Execution VulnerabilityEPSS 3.3%CVE-2024-11394HIGHHugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution VulnerabilityEPSS 2.7%CVE-2025-14929HIGHHugging Face Transformers X-CLIP Checkpoint Conversion Deserialization of Untrusted Data Remote Code Execution VulnerabilityEPSS 0.4%CVE-2025-14920HIGHHugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution VulnerabilityEPSS 0.4%CVE-2025-14928HIGHHugging Face Transformers HuBERT convert_config Code Injection Remote Code Execution VulnerabilityEPSS 0.3%