CVE-2026-126300
Awaiting Analysis Awaiting Analysis - Queue

Algorithmic Complexity Flaw in NLTK TreebankWordTokenizer

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

Publication date: 2026-11-13

Last updated on: 2026-11-13

Assigner: VulnCheck

Description

NLTK from 3.2.5 before 3.10.4 contains an algorithmic complexity vulnerability in TreebankWordTokenizer.span_tokenize that allows remote attackers to cause quadratic CPU consumption through repeated list.pop(0) calls. Attackers can submit long runs of double-quote characters to services span-tokenizing untrusted text, exhausting a CPU core and degrading availability.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

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

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk to 3.10.4 (exc)

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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects NLTK versions 3.2.5 through 3.10.3. It involves a flaw in TreebankWordTokenizer.span_tokenize where processing long sequences of double-quote characters causes quadratic CPU consumption due to repeated list.pop(0) calls. Each call shifts remaining list elements, making total work O(n^2). Attackers can exploit this to saturate a CPU core and degrade service availability.

Detection Guidance

To detect this vulnerability, monitor CPU usage spikes when processing text with long sequences of double-quote characters. Check NLTK versions in use (3.2.5 to 3.10.3) and inspect services using TreebankWordTokenizer.span_tokenize on untrusted input. Look for O(n^2) processing time growth with input size.

Impact Analysis

If you use NLTK versions 3.2.5 to 3.10.3 for processing untrusted text, an attacker could send crafted input with many double quotes to consume excessive CPU resources. This may cause denial of service, slow response times, or system unavailability for services relying on span tokenization of untrusted data.

Mitigation Strategies

Upgrade NLTK to version 3.10.4 or later if available. If upgrading is not possible, implement input length limits for text processing and replace list.pop(0) with an O(1) consumption strategy like iterators or collections.deque in TreebankWordTokenizer.span_tokenize.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126300. 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...