llamaCVEVulnerability Intelligence
/
NLTK

CVE-2026-128139

NLTK denial of service in XMLCorpusView CDATA parsing

An attacker can supply a crafted corpus file to consume excessive CPU and cause a denial of service.

Texto original en inglés · Ver en español

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ónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -29 d de la divulgación
Exposición1 dDesde la divulgación, 19 nov 2026, 12:39 p. m.
Detección8 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 3.10.4
Monitoreo
Detectada +1
Verificada
21 oct 26
19 nov 26
20 nov 26
21 nov 26
21 oct 26
29 oct 26
5 nov 26
13 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.10.4 nltk · -29 d desde divulgación
Divulgación Publicada CVE-2026-128139 divulgada · CVSS 7.5 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
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 Python library, has a flaw in how its XML corpus reader handles large comment and CDATA sections, which can make it consume excessive CPU time. An attacker who can supply a crafted corpus file can reach it remotely, without logging in, and cause a denial of service.

Affects NLTK 3.6 through 3.10.3 when XMLCorpusView streams a corpus file containing one large comment or CDATA section, including the nps_chat and framenet readers. Fixed in 3.10.4.

¿Qué significa?Reading a corpus file that contains one very large comment or CDATA section makes NLTK's XMLCorpusView use CPU time that grows quadratically with the section's size, which can exhaust the CPU during a single read of an untrusted file. The issue has no confidentiality or integrity impact.
¿Quién está afectado?The affected range is PyPI nltk 3.6 through 3.10.3, and the issue applies only when input is read through XMLCorpusView streaming, including the nps_chat and framenet readers built on it. To check the installed version, run pip show nltk and read the Version line.
¿Qué hacer?Upgrade nltk to 3.10.4 or later, which is the fixed version listed for this vulnerability.
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.6 to 3.10.3, XMLCorpusView._read_xml_fragment accumulates 1 KiB blocks and repeatedly applies whole-buffer XML validation while a comment or CDATA terminator remains ahead. A large comment in an attacker-controlled corpus file causes quadratic CPU consumption through documented XML corpus readers across the affected range. On 3.6 and 3.9.2, a large CDATA section incurs the quadratic scan before rejection, while on 3.10.3 both comment and CDATA documents are read successfully. This vulnerability is fixed in 3.10.4.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Affected nltk versions 3.6 through 3.10.3 (PyPI).“affected : PyPI nltk >= 3.6”
02
The input is read through XMLCorpusView streaming (including the nps_chat and framenet readers built on it).“nltk.corpus.reader.xmldocs.XMLCorpusView streaming read”
03
The corpus file contains one large comment or CDATA section.“whose body contains one large comment or CDATA section”
¿Quién debe revisar?Teams running nltk 3.6 through 3.10.3 that stream corpus XML from untrusted sources through XMLCorpusView, including NPS chat and FrameNet readers.
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.6 < 3.10.4
3.6
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-j8g8-j4j7-8j54
Otrahttps://github.com/nltk/nltk/commit/9cacbb95d97eaac7debb30d6e7decbe74d2c635f
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.