CVE-2026-9856huggingface/transformers
Alta 7.1 Sin autenticación
Seguir: esta CVE · huggingface · huggingface/transformers Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 58
- CVSS 3.0
- 7.1
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 2 ago 2026
- Actualizada
- 23 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-22
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
Qué pasa
A vulnerability in huggingface/transformers versions <=5.8.0.dev0 allows an attacker to perform arbitrary file writes via path traversal. The issue resides in the `save_pretrained()` methods of `PreTrainedTokenizerBase` and `ProcessorMixin`, where keys from the `chat_template` dictionary are used directly as filenames without proper validation. An attacker can exploit this by publishing a malicious Hugging Face Hub repository with a crafted `tokenizer_config.json` file. When a victim downloads and saves the tokenizer or processor, the attacker-controlled keys can escape the intended save directory, enabling arbitrary file writes with attacker-controlled content. This vulnerability affects multiple processors inheriting from `ProcessorMixin`, including Idefics, Florence, Gemma, Phi, and Qwen-VL.
Qué hacer
- Aplica la actualización de seguridad del fabricante para huggingface/transformers.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | transformers |
< 5.10.0 |
5.10.0 |
pip install "transformers>=5.10.0" |
| PyPI | transformers |
< 5.10.0 |
5.10.0 |
pip install "transformers>=5.10.0" |
Según OSV / GitHub Advisories (GHSA-xrqw-3rrv-vx5w, PYSEC-2026-3929). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- huggingface · huggingface/transformers
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.