CVE-2026-126298
NLTK before 3.10.4 contains a denial of service vulnerability in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/security/advisories/GHSA-r53h-rw34-8h97
- www.vulncheck.com/advisories/nltk-before-3.10.4-quadratic-cpu-denial-of-service-via-tree-c
- nvd.nist.gov/vuln/detail/CVE-2026-126298
- github.com/nltk/nltk/pull/3909
- github.com/nltk/nltk/commit/457ebe349f8dd8080224f76a64aff806dd437057
- github.com/nltk/nltk/commit/677857dcafd84e4591865d976b562a27dfde566e
- github.com/nltk/nltk/releases/tag/v3.10.4
- github.com/advisories/GHSA-r53h-rw34-8h97
- nvd.nist.gov/vuln/detail/CVE-2026-126298
- cve.org/CVERecord?id=CVE-2026-126298
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.