home / blog

2026-11-23 · critical

CVE-2026-128138: NLTK critical Java code execution

CVE-2026-128138: critical vulnerability in NLTK enables Java bytecode execution via unsafe Java options.

CVE-2026-128138: NLTK critical Java code execution

CVE-2026-128138 affects NLTK (Natural Language Toolkit), a suite of Python modules for Natural Language Processing. The vulnerability allows an attacker to execute selected Java bytecode by providing options like '-jar' or '@argfile' through nltk.internals.java or StanfordSegmenter.java_class, without requiring the unsafe-JAR opt-in. The impact could be severe for any system using NLTK for data processing.

The CVSS score of 9.8 classifies this vulnerability as critical, with a severe potential impact on the integrity, confidentiality, and availability of affected systems. The vulnerability has been officially fixed in NLTK version 3.10.4. Indications show there are public repositories that claim to contain exploits for this vulnerability, highlighting the need for immediate action.

Administrators and security teams should immediately update NLTK instances to version 3.10.4. For systems that cannot be updated immediately, it is recommended to implement strict access controls and limit access to NLTK components, especially in environments with sensitive data. It is also crucial to monitor access and suspicious activity that might indicate an attempt to exploit this vulnerability.

At a glance

What
Vulnerability in NLTK that enables Java bytecode execution via unsafe Java options.
Severity
CVSS 9.8 (critical)
Affected versions
NLTK 3.10.3
Fix
NLTK 3.10.4
Status
Published on NVD on 19/11/2026
Action
Immediately update to version 3.10.4

Sources: NVD, CVE-2026-128138

← All articles