CVE-2026-126298
Awaiting Analysis Awaiting Analysis - Queue

NLTK Tree.chomsky_normal_form DoS via list.pop(0)

Vulnerability report for CVE-2026-126298, 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 before 3.10.4 contains a denial of service vulnerability in Tree.chomsky_normal_form that allows remote attackers to exhaust CPU through quadratic-time right-factor binarization using list.pop(0). Attackers can supply a wide flat treebank tree parsed by Tree.fromstring to force tens of seconds of single-threaded CPU consumption, blocking the processing thread.

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-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 is a denial-of-service vulnerability in NLTK versions before 3.10.4. It occurs in the Tree.chomsky_normal_form method when processing wide flat treebank trees. The issue stems from using list.pop(0) which has quadratic time complexity O(N^2), causing excessive CPU consumption and blocking processing for tens of seconds on a single core.

Detection Guidance

Check NLTK version with pip show nltk. If version is below 3.10.4, the system is vulnerable. Monitor CPU usage spikes during NLTK tree processing tasks. Look for processes calling Tree.chomsky_normal_form with large inputs.

Impact Analysis

An attacker can remotely exploit this by supplying a specially crafted tree structure. This would consume excessive CPU resources, potentially blocking the processing thread and making the application unresponsive for extended periods. No authentication or user interaction is required.

Mitigation Strategies

Upgrade NLTK to version 3.10.4 or later immediately. If upgrading is not possible, restrict input size for Tree.chomsky_normal_form calls or implement custom binarization logic using collections.deque to avoid list.pop(0).

Chat Assistant

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