Skip to content
OpenAdvisories
High · 7.5 CVE-2026-126298 EUVD-2026-125223GHSA-6665-2vj3-h76rGHSA-r53h-rw34-8h97

NLTK before 3.10.4 Quadratic CPU Denial of Service via Tree.chomsky_normal_form

Published Nov 13, 2026 · Updated Nov 13, 2026 · Assigned by 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.

Affected products

VendorProductAffectedFixed
nltk nltk < 3.10.4 3.10.4

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.10.4 3.10.4 GHSA-r53h-rw34-8h97

References