CVE-2026-128138
NLTK (Natural Language Toolkit) is a suite of open source Python …
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.3 until 3.10.4, the NLTK 3.10.3 JVM hardening validates Java launcher tokens in the options channel but appends the caller-controlled cmd sequence without requiring its first token to be a main class. Supplying -jar or an @argfile through nltk.internals.java or StanfordSegmenter.java_class can therefore execute attacker-selected Java bytecode without the unsafe-JAR opt-in. This issue is fixed in version 3.10.4.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/commit/b36212795a522d2b7b176cf0e0d9d8da489ba6e6
- github.com/nltk/nltk/pull/3771
- github.com/nltk/nltk/releases/tag/v3.10.4
- github.com/nltk/nltk/security/advisories/GHSA-x8q7-6c7m-52gw
- nvd.nist.gov/vuln/detail/CVE-2026-128138
- github.com/advisories/GHSA-x8q7-6c7m-52gw
- nvd.nist.gov/vuln/detail/CVE-2026-128138
- cve.org/CVERecord?id=CVE-2026-128138
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.