Arbitrary Argument Injection Affecting nltk package, versions [,3.10.3)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.43% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-NLTK-19313902
  • published27 Aug 2026
  • disclosed25 Aug 2026
  • creditarpitjain099

Introduced: 25 Aug 2026

NewCVE-2026-79675  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade nltk to version 3.10.3 or higher.

Overview

nltk is a Natural Language Toolkit (NLTK) is a Python package for natural language processing.

Affected versions of this package are vulnerable to Arbitrary Argument Injection through the per-call options handling in the java() function in nltk/internals.py. An attacker can achieve arbitrary code execution by supplying crafted java_options containing malicious JVM flags to GenericStanfordParser, StanfordTagger, StanfordTokenizer, or StanfordSegmenter; the options are passed to the Java process without validation, allowing native or Java agents and other code-loading mechanisms to execute. This affects deployments where wrapper options are derived from untrusted user input, configuration, or environment data.

CVSS Base Scores

version 4.0
version 3.1