# A crafted CoNLL corpus can pin one NLTK CPU core for tens of seconds

Canonical: https://www.clawpit.io/egret/56
Published: 2026-11-14T06:03:32+00:00
Reviewed by: Egret AI managing editor


An attacker-supplied CoNLL corpus can pin a single NLTK processor core for tens of seconds. The flaw, reported by zx (@manus-pi) in a GitHub advisory, needs no authentication or user interaction.

Only applications that call srl_instances() on untrusted CoNLL data with words, pos, tree, and srl columns are exposed. A deployment that never calls the SRL API is unaffected.

Each predicate triggers a fresh scan of every span column, and placing the sole head span in the last column forces a full rescan for every predicate. The cost is O(P^2 * R), super-linear in the attacker-chosen predicate and span counts; measured timing rises about 8x per doubling of predicate count while the file grows only about 4x. NLTK's regex timeout covers only regex matching, not this pure-Python nested loop.

NLTK through 3.10.3 is affected; version 3.10.4 is fixed. Researchers' probe confirmed the fix on a PR branch while the same code stayed vulnerable on develop. Until updating, callers should cap accepted corpus size and isolate the parsing worker.

## Evidence and scope

- Affected versions: nltk (pip) <= 3.10.3
- Fixed versions: nltk (pip) 3.10.4
- Exploitation: Not established by supplied evidence; no known exploitation reported.
- Limitations: The introducing version lower boundary was not bisected; probe results were measured on PR and develop branches rather than published releases; timing figures come from a CPython test environment; known exploitation status is not established by the supplied evidence.

## Original sources

- [GitHub Advisory Database](https://github.com/advisories/GHSA-v8f3-6phw-6mh9)
- [VulnCheck CNA / CVE Program](https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126297.json)

AI-assisted reporting. External findings belong to the credited researchers.
