PT-2026-146629

CVE-2026-126298

·

Published

2026-11-13

·

Updated

2026-11-14

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions NLTK versions prior to 3.10.4
Description An issue exists where remote attackers can cause a denial of service by exhausting CPU resources. This occurs when the application processes a wide flat treebank tree using the Tree.fromstring parser and subsequently normalizes it using the Tree.chomsky normal form() function. The default right-factor binarization process uses list.pop(0), which results in quadratic-time complexity O(N^2) because it shifts all remaining elements in the list during each iteration. An attacker can provide a specially crafted tree (approximately 1.5 MB) to force sustained single-threaded CPU consumption for tens of seconds, blocking the processing thread. This affects the nltk.tree.transforms.chomsky normal form function and the Tree.chomsky normal form and Tree.fromstring endpoints.
Recommendations Update NLTK to version 3.10.4 or later. As a temporary workaround, restrict the maximum child count of trees accepted for normalization or execute the transform within an isolated worker with a strict CPU or time budget.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-R53H-RW34-8H97
Found an issue in the description? Have something to add? Feel free to write us 👾