NLTKの脆弱性、細工したツリー解析でCPUを使い果たされるおそれ
Summary
NLTKの3.10.4より前のバージョンには、Tree.chomsky_normal_formの処理にサービス拒否(DoS)の脆弱性があります。広く平たい構造のツリーを解析させられると、数十秒間1つのスレッドのCPUが占有され、処理が止まるおそれがあります。修正版の3.10.4に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
NLTKの3.10.4より前のバージョンには、Tree.chomsky_normal_formの処理にサービス拒否(DoS)の脆弱性があります。広く平たい構造のツリーを解析させられると、数十秒間1つのスレッドのCPUが占有され、処理が止まるおそれがあります。修正版の3.10.4に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| nltknltk |
< 3.10.4→ 3.10.4 |
3.10.4 |
| pipnltk |
< 3.10.4→ 3.10.4 |
3.10.4 |
| PyPInltk |
< 3.10.4→ 3.10.4 |
3.10.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-126298 nltk No fixed version in this record
Original description The description as published by the source.
NLTK before 3.10.4 contains a denial of service vulnerability in Tree.chomsky_normal_form that allows remote attackers to exhaust CPU through quadratic-time right-factor binarization using list.pop(0). Attackers can supply a wide flat treebank tree parsed by Tree.fromstring to force tens of seconds of single-threaded CPU consumption, blocking the processing thread.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com