Argument injection in Natural Language Toolkit - CVE-2026-128138

 

Argument injection in Natural Language Toolkit - CVE-2026-128138

Published: November 17, 2026


Vulnerability identifier: #VU166499
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-128138
CWE-ID: CWE-88
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-128138

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins