high8.7
CVE-2026-126297
NLTK before 3.10.4 contains a quadratic-time denial of service vulnerability in ConllCorpusReader._get_srl_instances that allows remote attackers to exhaust CP…
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | nltk | < 3.10.4 | none recorded |
Affected products · Nltk
| Product | Affected versions |
|---|---|
| Nltk | before 3.10.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-qvhx-rvgc-jhwf
- https://github.com/nltk/nltk/security/advisories/GHSA-v8f3-6phw-6mh9
- https://nvd.nist.gov/vuln/detail/CVE-2026-126297
- https://www.vulncheck.com/advisories/nltk-before-3.10.4-cpu-denial-of-service-via-conllcorpusreader-srl-instances
- https://github.com/advisories/GHSA-v8f3-6phw-6mh9
- https://github.com/nltk/nltk/pull/3933
- https://github.com/nltk/nltk/commit/7bae75fc0f7b1f057ff7d89d24c81bb5a4a0f05a
- https://github.com/nltk/nltk/commit/9cacbb95d97eaac7debb30d6e7decbe74d2c635f
- https://github.com/nltk/nltk/releases/tag/v3.10.4