Shellfeed logo Shellfeed

CVE-2026-126300 · MEDIUM (CVSS 5.3)

Summary: NLTK from 3.2.5 before 3.10.4 CPU Exhaustion via TreebankWordTokenizer.span_tokenize

EPSS: 0.5% probability of exploitation in the next 30 days (percentile 41.4).

Details

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.

Severity

MEDIUM (CVSS 5.3) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

  • PyPI nltk [3.2.5 – 3.10.4]
  • GIT github.com/nltk/nltk [9b6beb8bd0e1530754fa52d360688bac5d1c9cb3 – 5c41fc04a45e95577a83f3914acda211a994be00]

References

Posts about CVE-2026-126300