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

 

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

Published: November 16, 2026


Vulnerability identifier: #VU166228
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-129231
CWE-ID: CWE-407
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to degrade processing availability through excessive CPU consumption.

The vulnerability exists due to inefficient algorithmic complexity in Natural Language Toolkit's SeekableUnicodeStreamReader.readline when repeatedly rescanning the entire growing line buffer with read blocks capped at 8000 characters. A remote attacker can supply a large corpus file containing one unterminated line to an application using an encoding-enabled, line-oriented corpus reader with the default size=None to cause quadratic CPU consumption until the file is exhausted.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129231

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins