CVE-2021-43854Nltk
Alta 7.5 Sin autenticación
Seguir: esta CVE · Nltk · Nltk Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.8% probabilidad de explotación en 30 días · percentil 87
- Requiere autenticación
- No
- Publicada
- 23 dic 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Qué pasa
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Versions prior to 3.6.5 are vulnerable to regular expression denial of service (ReDoS) attacks. The vulnerability is present in PunktSentenceTokenizer, sent_tokenize and word_tokenize. Any users of this class, or these two functions, are vulnerable to the ReDoS attack. In short, a specifically crafted long input to any of these vulnerable functions will cause them to take a significant amount of execution time. If your program relies on any of the vulnerable functions for tokenizing unpredictable user input, then we would strongly recommend upgrading to a version of NLTK without the vulnerability. For users unable to upgrade the execution time can be bounded by limiting the maximum length of an input to any of the vulnerable functions. Our recommendation is to implement such a limit.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Nltk.
- 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 | nltk |
< 3.6.6 |
3.6.6 |
pip install "nltk>=3.6.6" |
| PyPI | nltk |
< 3.6.5 |
3.6.5 |
pip install "nltk>=3.6.5" |
Según OSV / GitHub Advisories (GHSA-f8m6-h2c7-8h9x, PYSEC-2021-859). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| nltk | nltk | < 3.6.5 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Patch
- github.com Exploit Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory