November 18, 2026 Follow Egret
Vulnerabilities

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

By Egret editorial desk 1 min read
Original source GitHub Advisory Database ↗AI-assisted · 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.

Affected
nltk (pip) <= 3.10.3
Fixed
nltk (pip) 3.10.4

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.

Sources & technical scope 2 sources

GitHub Advisory Database — original source ↗

VulnCheck CNA / CVE Program — original source ↗

Affected: nltk (pip) <= 3.10.3

Fixed: nltk (pip) 3.10.4

Exploitation: Not established by supplied evidence; no known exploitation reported.

Scope & 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.

External findings belong to the credited researchers.
Egret — Back to top Egret