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.
References
| Link | Resource |
|---|---|
| https://github.com/nltk/nltk/security/advisories/GHSA-97qj-x29f-37w7 | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/nltk-before-entity-expansion-dos-via-elementtree | Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-08-25 02:16
Updated : 2026-09-01 20:09
NVD link : CVE-2026-78681
Mitre link : CVE-2026-78681
CVE.ORG link : CVE-2026-78681
JSON object : View
Products Affected
nltk
- nltk
CWE
CWE-776
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
