CVE-2026-126297

NLTK: Quadratic-time CPU denial of service in ConllCorpusReader SRL instance builder via nested span rescan

High published · updated · also known as GHSA-V8F3-6PHW-6MH9

8.7
CVSS score out of 10 · NVD (vulncheck.com)

Description

NLTK before 3.10.4 contains a quadratic-time denial of service vulnerability in ConllCorpusReader._get_srl_instances that allows remote attackers to exhaust CPU through nested span rescans. Attackers can supply a crafted CoNLL SRL corpus with many predicates and span columns, placing the head span last, to pin a core for minutes.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
nltk pip <= 3.10.33.10.4 GitHub

References