Skip to content

CVE-2026-128139 NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service

HighCVSS 7.5 EPSS 0.51%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

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.

Upgrade path

9 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/nltk(Debian 12) = 3.8-1; = 3.8.1-1; = 3.9.1-1; = 3.9.1-2 +6 more No fix listed No fix yet
debian/nltk(Debian 13) = 3.9.1-2; = 3.9.2-1; = 3.9.3-1; = 3.10.0-1 +3 more No fix listed No fix yet
debian/nltk(Debian 14) = 3.9.1-2; = 3.9.2-1; = 3.9.3-1; = 3.10.0-1 +3 more No fix listed No fix yet
ubuntu/nltk(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/nltk(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/nltk(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/nltk(Ubuntu 26.10) All versions No fix listed No fix yet
pypi nltk(PyPI) = 3.6; = 3.6.1; = 3.6.2; = 3.6.3 +19 more 3.10.4 Fixed
nltk = >= 3.6, < 3.10.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi nltk(PyPI) >= 3.6, <= 3.10.3 No fix listed
pypi nltk(PyPI) >= 3.6, < 3.10.4 3.10.4
pypi nltk(PyPI) = 3.10.0 No fix listed
pypi nltk(PyPI) = 3.10.1 No fix listed
pypi nltk(PyPI) = 3.10.2 No fix listed
pypi nltk(PyPI) = 3.10.3 No fix listed
pypi nltk(PyPI) = 3.6 No fix listed
pypi nltk(PyPI) = 3.6.1 No fix listed
pypi nltk(PyPI) = 3.6.2 No fix listed
pypi nltk(PyPI) = 3.6.3 No fix listed
pypi nltk(PyPI) = 3.6.4 No fix listed
pypi nltk(PyPI) = 3.6.5 No fix listed
pypi nltk(PyPI) = 3.6.6 No fix listed
pypi nltk(PyPI) = 3.6.7 No fix listed
pypi nltk(PyPI) = 3.7 No fix listed
pypi nltk(PyPI) = 3.8 No fix listed
pypi nltk(PyPI) = 3.8.1 No fix listed
pypi nltk(PyPI) = 3.9 No fix listed
pypi nltk(PyPI) = 3.9.1 No fix listed
pypi nltk(PyPI) = 3.9.2 No fix listed
pypi nltk(PyPI) = 3.9.3 No fix listed
pypi nltk(PyPI) = 3.9.4 No fix listed
pypi nltk(PyPI) = 3.9b1 No fix listed
nltk = >= 3.6, < 3.10.4 No fix listed
debian/nltk(Debian:12) All versions No fix listed
Show 27 more
ProductAffected versionsFixed in
debian/nltk(Debian:12) = 3.10.0-1 No fix listed
debian/nltk(Debian:12) = 3.10.1-1 No fix listed
debian/nltk(Debian:12) = 3.10.3-1 No fix listed
debian/nltk(Debian:12) = 3.8-1 No fix listed
debian/nltk(Debian:12) = 3.8.1-1 No fix listed
debian/nltk(Debian:12) = 3.9.1-1 No fix listed
debian/nltk(Debian:12) = 3.9.1-2 No fix listed
debian/nltk(Debian:12) = 3.9.2-1 No fix listed
debian/nltk(Debian:12) = 3.9.3-1 No fix listed
debian/nltk(Debian:13) All versions No fix listed
debian/nltk(Debian:13) = 3.10.0-1 No fix listed
debian/nltk(Debian:13) = 3.10.1-1 No fix listed
debian/nltk(Debian:13) = 3.10.3-1 No fix listed
debian/nltk(Debian:13) = 3.9.1-2 No fix listed
debian/nltk(Debian:13) = 3.9.2-1 No fix listed
debian/nltk(Debian:13) = 3.9.3-1 No fix listed
debian/nltk(Debian:14) All versions No fix listed
debian/nltk(Debian:14) = 3.10.0-1 No fix listed
debian/nltk(Debian:14) = 3.10.1-1 No fix listed
debian/nltk(Debian:14) = 3.10.3-1 No fix listed
debian/nltk(Debian:14) = 3.9.1-2 No fix listed
debian/nltk(Debian:14) = 3.9.2-1 No fix listed
debian/nltk(Debian:14) = 3.9.3-1 No fix listed
ubuntu/nltk(Ubuntu:22.04) All versions No fix listed
ubuntu/nltk(Ubuntu:24.04) All versions No fix listed
ubuntu/nltk(Ubuntu:26.04) All versions No fix listed
ubuntu/nltk(Ubuntu:26.10) All versions No fix listed

References