Inefficient Algorithmic Complexity in Natural Language Toolkit - CVE-2026-129231
Published: November 16, 2026
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.