Amenazas en vivo
VulnFox

Todas las CVE / Huggingface

CVE-2025-6921Huggingface Transformers

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
—
Requiere autenticación
No
Publicada
23 sep 2025
Actualizada
11 oct 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-400
SSVC (CISA)
Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Qué pasa

The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer. The vulnerability arises from the _do_use_weight_decay method, which processes user-controlled regular expressions in the include_in_weight_decay and exclude_from_weight_decay lists. Malicious regular expressions can cause catastrophic backtracking during the re.search call, leading to 100% CPU utilization and a denial of service. This issue can be exploited by attackers who can control the patterns in these lists, potentially causing the machine learning task to hang and rendering services unresponsive.

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-4w7r-h757-3r74, PYSEC-2026-1980). 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.