Argument injection in Natural Language Toolkit - CVE-2026-128138
Published: November 17, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary Java bytecode with the privileges of the process using NLTK.
The vulnerability exists due to improper neutralization of launcher arguments in nltk.internals.java() when embedding applications expose command tokens to untrusted input without enforcing a main-class name. A remote attacker can supply cmd=["-jar", "/outside/trusted/roots/controlled.jar"] or StanfordSegmenter java_class="@/path/to/controlled-launcher.args" referencing a readable JAR or argument file to bypass execution restrictions and execute attacker-selected Java bytecode.