Inefficient regular expression complexity in Natural Language Toolkit - CVE-2026-12061

 

Inefficient regular expression complexity in Natural Language Toolkit - CVE-2026-12061

Published: November 22, 2026


Vulnerability identifier: #VU169287
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-12061
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service in applications that process untrusted review corpora with NLTK.

The vulnerability exists due to an unbounded greedy match in the ReviewsCorpusReader FEATURES regular expression, which can cause quadratic backtracking when scanning review lines for feature annotations. A remote attacker can supply a corpus containing a crafted review line to consume excessive CPU time and stall calls to reviews(), features(), or sents().


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-12061

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.0

External References

Related Security Bulletins