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

CVE-2026-126300

NLTK from 3.2.5 before 3.10.4 CPU Exhaustion via TreebankWordTokenizer.span_tokenize

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

Medium 40/100

Summary

NLTK from 3.2.5 before 3.10.4 contains an algorithmic complexity vulnerability in TreebankWordTokenizer.span_tokenize that allows remote attackers to cause quadratic CPU consumption through repeated list.pop(0) calls. Attackers can submit long runs of double-quote characters to services span-tokenizing untrusted text, exhausting a CPU core and degrading availability.

Affected products and versions

Nltk (1 line(s))
Nltk
ProductVersionsFixed inSource
Nltk from 3.2.5 (included) to 3.10.4 (excluded) — CNA (vendor or assigner)
Pypi (1 line(s))
Pypi
ProductVersionsFixed inSource
nltk from 3.2.5 (included) to 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

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

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:L (CVSS 3.1, NVD)
Weakness
CWE-407 · Autre (CWE-407)

How this data is obtained and calculated