CVE-2026-78681
8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Summary
NLTK versions before 3.10.3 use xml.etree.ElementTree to parse XML in multiple modules, which honors entity declarations in document DTDs. Attackers can craft XML payloads with nested entity declarations that expand from hundreds of bytes to megabytes in memory, causing denial of service.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| nltk | nltk | 0 < 3.10.3 | affected |
| nltk | nltk | 3.10.3 | unaffected |
Weaknesses
- CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
References
- https://github.com/nltk/nltk/security/advisories/GHSA-97qj-x29f-37w7
- https://www.vulncheck.com/advisories/nltk-before-entity-expansion-dos-via-elementtree
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.