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
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-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 |
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.
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.
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-j8g8-j4j7-8j54https://github.com/nltk/nltk/commit/9cacbb95d97eaac7debb30d6e7decbe74d2c635fhttps://github.com/nltk/nltk/releases/tag/v3.10.4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
