NLTK: Quadratic-time CPU denial of service in Tree.chomsky_normal_form right-factor binarization via list.pop(0) — GHSA-R53H-RW34-8H97
GitHub · GitHub · GHSA-R53H-RW34-8H97
ID
GHSA-R53H-RW34-8H97
GHSA-R53H-RW34-8H97
Date
Source
GitHub
GitHub
Vendor
GitHub
GitHub
Threat
high
high
CVSS
7.5
7.5
EPSS
0.00582
0.00582
Summary
## Summary `Tree.chomsky_normal_form()` binarizes a parse tree and defaults to right factoring. For a node with N children the right-factor branch repeatedly removes the first element of a working list with `list.pop(0)`, which shifts all remaining elements each time, so binarizing one wide node costs O(N^2). An application that converts an attacker-supplied treebank tree to Chomsky Normal Form can be forced into…
Timeline
- Published by source
- 2026-11-14
Risk context
- Reported severity or threat level: high.
- Reported CVSS score: 7.5 out of 10.
- Reported EPSS value: 0.00582.
- Review exposure for the affected product or family: pip: nltk.
Product
pip: nltk
What to do
General, cautious steps (verify details in the official source):
- Prioritize patching or mitigation immediately (treat as actively risky).
- Identify affected product versions in your inventory and verify whether you are impacted.
- Apply vendor patches/updates or recommended mitigations as soon as available.
- Read the official advisory for exact affected versions and remediation steps.
Official advisory
Evidence and provenance
- Canonical advisory ID
- GHSA-R53H-RW34-8H97
- Source
- GitHub
- Vendor
- GitHub
- Published by source
- 2026-11-14
- Last source activity
- 2026-11-14
- Additional identifiers
- CVE-2026-126298
- Curated by
- hlukh.ch
Related advisories and connections
These advisories are connected by shared CVE, product, vendor, source, or time signals.