llamaCVEVulnerability Intelligence
/
NLTK

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.

UnclearParche disponibledenial of service
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -29 d de la divulgación
Exposición14 hDesde la divulgación, 19 nov 2026, 12:19 p. m.
Detección8 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 3.10.4
Monitoreo
Detectada +2
21 oct 26
19 nov 26
20 nov 26
21 oct 26
29 oct 26
5 nov 26
12 nov 26
20 nov 26
FechaFaseEventoDetalle
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
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

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.

¿Qué significa?A small crafted regex pattern with many empty capturing groups can use a lot of CPU while NLTK compiles it, before the match-only timeout applies, which can tie up worker cores. The advisory states no confidentiality or integrity impact.
¿Quién está afectado?Affected versions are NLTK 3.10.0 through 3.10.3, in setups where untrusted text is passed as the search pattern to TokenSearcher.findall() or Text.findall(), or as the tokenizer pattern to RegexpTokenizer. Check the installed NLTK version with pip show nltk to see whether it falls in that range.
¿Qué hacer?Upgrade NLTK to 3.10.4, which is the listed fixed version. As an interim mitigation, validate or reject overly long or group-dense patterns from untrusted input before they reach NLTK regex APIs.
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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Application passes caller-supplied text as the regex search pattern to TokenSearcher.findall() / Text.findall(), or as the tokenizer pattern to RegexpTokenizer“When an application passes untrusted text as the search pattern to TokenSearcher.findall() / Text.findall()”
02
NLTK version 3.10.0 through 3.10.3“Confirmed affected range: >= 3.10.0, <= 3.10.3”
¿Quién debe revisar?Teams running NLTK 3.10.0 through 3.10.3 that pass caller-supplied regex patterns to TokenSearcher.findall, Text.findall or RegexpTokenizer
No protegeA wall-clock match timeout does not stop this; compilation runs outside it.
MitigaciónValidate or reject overly long or group-dense patterns from untrusted input before they reach NLTK regex APIs
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
nltk≥ 3.10.0 < 3.10.4
3.10.0
3.10.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypinltk
Corregida 3.10.4 -29 d 3.10.4 no afectada
Versiones corregidas3.10.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78
Otrahttps://github.com/nltk/nltk/pull/3895
Otrahttps://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412
Otrahttps://github.com/nltk/nltk/releases/tag/v3.10.4

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.