CVE-2026-12615: NLTK Stanford Wrapper Per-Call JVM Argument Injection
NLTK contains an argument-injection flaw in per-call JVM option handling used by GenericStanfordParser, StanfordTagger, StanfordTokenizer, and StanfordSegmenter. User-supplied java_options passed to nltk.internals.java() are not validated when supplied through the per-call options parameter, bypassing JVM-option validation. An attacker who controls this value can introduce arbitrary JVM arguments, including options that load Java or native agents, enable remote debugging, or cause additional argument files to be processed.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can enable arbitrary code execution through malicious Java or native agent loading. It can also expose a JDWP debugging service that may be used to obtain remote code execution, or extend attacker control through JVM argument-file processing. Impact depends on the JVM runtime configuration, reachable debugging interfaces, and privileges of the affected Python/Java process.
Mitigation
If you can’t patch tonight, do this now.
Do not allow untrusted input, configuration values, or environment variables to populate java_options. Until upgraded, explicitly validate per-call JVM options with _validate_java_options() before calling nltk.internals.java(), reject agent-loading, JDWP/debugging, and argument-file options, restrict network access to Java debugging ports, and run affected services with least privilege.
Remediation
Patch, then assume compromise.
Upgrade the PyPI nltk package to version 3.10.3 or later. The corrective change validates java_options by invoking _validate_java_options(java_options) in nltk.internals.java() whenever per-call options are supplied.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-12615 exploited in the wild?
- As of Sep 2, 2026, Mallory has no reports of CVE-2026-12615 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-12615?
- As of Sep 2, 2026, Mallory has found no public exploit for CVE-2026-12615.
- Is there a patch for CVE-2026-12615?
- Upgrade the PyPI nltk package to version 3.10.3 or later. The corrective change validates java_options by invoking _validate_java_options(java_options) in nltk.internals.java() whenever per-call options are supplied.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.