Command Injection Vulnerability in NLTK Python Library
CVE-2026-128138
9.8CRITICAL
What is CVE-2026-128138?
The NLTK (Natural Language Toolkit) library for Python has a vulnerability that allows an attacker to execute arbitrary Java bytecode due to insufficient validation of command line options. The flaw exists in versions 3.10.3 and earlier, where the library improperly handles Java launcher tokens, permitting the execution of attacker-selected Java code through specific command line arguments. This vulnerability has been resolved in version 3.10.4, ensuring that the first token is validated and complies with safety protocols.
Affected Version(s)
nltk >= 3.10.3, < 3.10.4
