Skip to content
CVE PROGRAM SOURCE RECORD6.3 Medium

CVE-2026-81723

NLTK before 3.10.3 Quadratic CPU Exhaustion via XMLCorpusView

Description

NLTK versions before 3.10.3 contain a quadratic CPU exhaustion vulnerability in XMLCorpusView._read_xml_fragment() that rescans accumulated XML fragments on every 1 KiB block read. Attackers can provide malformed XML corpus files to cause severe CPU consumption and denial of service through affected readers like BNCCorpusReader.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

nltk nltk

Default version status: unaffected

  • 0 to < 3.10.3affected
  • 3.10.3unaffected
pkg:pypi/nltk

References