Skip to content

CVE-2026-129229 NLTK: Compile-time regex DoS in NLTK search/tokenizer sinks: quadratic regex-engine compile bypasses the match-only timeout

HighCVSS 7.5 EPSS 0.53%
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.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.

Upgrade path

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

PackageAffectedFixed inStatus
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.10.0; = 3.10.1; = 3.10.2; = 3.10.3 +2 more 3.10.4 Fixed
nltk = >= 3.10.0, < 3.10.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi nltk(PyPI) >= 3.10.0, <= 3.10.3 No fix listed
pypi nltk(PyPI) >= 3.10.0, < 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
nltk = >= 3.10.0, < 3.10.4 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