CVE-2026-129229
NLTK denial of service via regex compile in tokenizer
An unauthenticated remote attacker can send a crafted regex that makes the CPU spin and denies service.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 3.10.4 | nltk · -29 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-129229 divulgada · CVSS 7.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
NLTK, the Natural Language Toolkit for Python, contains a flaw in its search and tokenizer functions that lets an attacker remotely, without logging in, send a regular expression that takes a very long time to compile and uses up CPU, denying service. The problem is in the work done before the match timeout starts, so the timeout does not stop it.
Only affects NLTK 3.10.0 through 3.10.3 when caller-supplied text is used as the regex search pattern in TokenSearcher.findall() / Text.findall() or as the RegexpTokenizer pattern. Fixed in 3.10.4.
Descripción original del registro (GitHub_M)
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, TokenSearcher.findall and Text.findall accept caller-controlled regular expressions with an unbounded number of capturing groups throughout the affected range. Starting in 3.10.3, nltk.redos.compile and RegexpTokenizer expose the same compile-time vector. The third-party regex engine compiles group-dense patterns with roughly quadratic cost before the match-time timeout begins, allowing a small unauthenticated request to exhaust CPU and deny service. This issue is fixed in version 3.10.4.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypinltk |
Corregida | 3.10.4 | -29 d | 3.10.4 no afectada |
3.10.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78https://github.com/nltk/nltk/pull/3895https://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412https://github.com/nltk/nltk/releases/tag/v3.10.4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
