CVE-2026-129231
Awaiting Analysis Awaiting Analysis - Queue

SeekableUnicodeStreamReader Quadratic CPU Consumption in NLTK

Vulnerability report for CVE-2026-129231, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: GitHub, Inc.

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. Prior to 3.10.4, SeekableUnicodeStreamReader.readline appends each new block to a growing character buffer and reruns splitlines over the entire buffer on every iteration. An attacker-controlled corpus file containing one very long unterminated line therefore causes quadratic CPU consumption in line-oriented corpus readers and can deny service. This issue is fixed in version 3.10.4.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-20
AI Q&A
2026-11-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk 3.10.4

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.
CWE-400 The product does not properly control the allocation and maintenance of a limited resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in NLTK versions before 3.10.4 involves the SeekableUnicodeStreamReader.readline function. It inefficiently processes attacker-controlled corpus files by repeatedly appending new data to a growing buffer and rerunning splitlines on the entire buffer for each iteration. This causes quadratic CPU consumption when the file contains a single very long unterminated line, leading to denial of service.

Detection Guidance

This vulnerability is specific to NLTK versions prior to 3.10.4 and involves quadratic CPU consumption when processing attacker-controlled corpus files with long unterminated lines. To detect it, check the installed NLTK version using 'pip show nltk' or 'python -c "import nltk; print(nltk.__version__)"'. If the version is below 3.10.4, the system is vulnerable.

Impact Analysis

An attacker could exploit this by providing a malicious corpus file with a very long line, causing high CPU usage and potentially crashing or slowing down systems using affected NLTK versions. This could disrupt services relying on NLTK for natural language processing tasks.

Mitigation Strategies

Upgrade NLTK to version 3.10.4 or later using 'pip install --upgrade nltk'. Avoid loading untrusted corpus files until the upgrade is complete. Monitor system performance for unusual CPU spikes when processing text files.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129231. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...