1. Home
  2. Vulnerabilities
  3. CVE-2026-126298

CVE-2026-126298

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

Published 13 Nov 2026 · modified 13 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 45/100

Summary

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 and versions

Nltk (1 line(s))
Nltk
ProductVersionsFixed inSource
Nltk before 3.10.4 (excluded) — CNA (vendor or assigner)
Pypi (1 line(s))
Pypi
ProductVersionsFixed inSource
nltk before 3.10.4 (excluded) 3.10.4 GitHub Advisory

Fix

Upgrade — PyPI/nltk 3.10.4official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-400 · Autre (CWE-400)

How this data is obtained and calculated