CVE-2026-126298

GHSA-r53h-rw34-8h97 · published 13 Nov 2026 · updated 17 Nov 2026

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

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.10.4 and nltk 3.10.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nltk<3.10.43.10.4
pypi: nltk<3.10.4, <=3.10.33.10.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in nltk (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126298 severity on Zeptric[![CVE-2026-126298](https://zeptric.io/badge/cve/CVE-2026-126298.svg)](https://zeptric.io/cve/CVE-2026-126298)