Inefficient Algorithmic Complexity in Natural Language Toolkit - CVE-2026-129232

 

Inefficient Algorithmic Complexity in Natural Language Toolkit - CVE-2026-129232

Published: November 16, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service through sustained CPU exhaustion.

The vulnerability exists due to inefficient algorithmic complexity in NLTK's XMLCorpusView.read_block when processing deeply nested XML, repeatedly rebuilding the full context path with "/".join(context) while searching for a matching element. A remote attacker can supply an XML corpus containing repeated nested "<a>" and "</a>" tags that never match the reader's target specification to trigger quadratic CPU consumption in applications processing attacker-influenced corpus data.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129232

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins