CVE-2026-78681

7.5

NLTK · nltk

NLTK is vulnerable to a denial of service attack via XML entity expansion, which allows an unauthenticated attacker to exhaust system resources.

Executive summary

An unauthenticated remote attacker can cause a denial of service in NLTK versions prior to 3.10.3 by exploiting improper XML entity reference handling.

Vulnerability

This vulnerability is caused by an improper restriction of recursive entity references in DTDs, also known as XML Entity Expansion. An unauthenticated attacker can supply malicious XML input to crash the application by exhausting system memory.

Business impact

The vulnerability carries a CVSS score of 7.5, indicating a high severity risk. Successful exploitation would lead to system unavailability, disrupting critical data processing tasks that rely on the NLTK library and potentially halting dependent business operations.

Remediation

Immediate Action: Update the NLTK library to version 3.10.3 or later to incorporate the necessary security patches.

Proactive Monitoring: Monitor system resource usage, specifically memory consumption, for spikes that correlate with incoming XML data processing requests.

Compensating Controls: Implement strict input validation or use a hardened XML parser that disables DTD processing to prevent entity expansion attacks if an immediate update is not feasible.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Given the high CVSS score and the ease of exploitation for denial of service, organizations should prioritize upgrading their NLTK dependencies. Applying the vendor-provided update is the only effective way to mitigate this risk fully.

More NLTK CVEs