Amenazas en vivo

Todas las CVE / Huggingface

CVE-2025-5197Huggingface Transformers

Media 5.3 Sin autenticación

Prioridad
47
CVSS 3.0
5.3
EPSS
—
Requiere autenticación
No
Publicada
6 ago 2025
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-1333
SSVC (CISA)
Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Qué pasa

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the `convert_tf_weight_name_to_pt_weight_name()` function. This function, responsible for converting TensorFlow weight names to PyTorch format, uses a regex pattern `/[^/]*___([^/]*)/` that can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. The vulnerability affects versions up to 4.51.3 and is fixed in version 4.53.0. This issue can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting model conversion processes between TensorFlow and PyTorch formats.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Transformers.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
PyPI transformers < 4.53.0 4.53.0 pip install "transformers>=4.53.0"
PyPI transformers < 4.53.0 4.53.0 pip install "transformers>=4.53.0"

Según OSV / GitHub Advisories (GHSA-9356-575x-2w9m, PYSEC-2026-1983). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
huggingfacetransformers< 4.53.0

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.