Cloudanix VulnDB

CVE-2026-79675

Critical · 9.8

CVSS

9.8

EPSS

0.8%

Published

Aug 25, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A popular text-processing library contains a flaw that lets attackers run their own programs on the server simply by sending specially crafted input, potentially giving them full control of the system.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Command Injection
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

The java() function in NLTK accepts unvalidated per-call options that are passed directly to the JVM, permitting injection of flags such as -agentpath, -javaagent, or @argfile that load attacker-controlled native libraries or configuration into Stanford wrapper classes and achieve arbitrary code execution.

Why it matters to the business

Attackers can execute arbitrary code on any system that invokes the vulnerable NLTK java() function, leading to full server compromise, data theft, or deployment of ransomware and other malware; the vulnerability affects a widely used NLP library with many downstream dependents.

How an attack unfolds

An attacker supplies a malicious options string containing JVM flags such as -javaagent or @argfile to the java() function; the options are forwarded without sanitization to the underlying Stanford NLP wrapper, causing the JVM to load attacker-supplied code and execute it with the privileges of the NLTK process.

How to fix it

Upgrade NLTK to version 3.10.3 or later, which enforces validation of JVM options passed to the java() function. If immediate upgrade is not possible, restrict or sanitize all inputs reaching the java() function and avoid use of Stanford wrapper classes with untrusted data.

How to confirm the fix worked

Confirm NLTK version is 3.10.3 or newer; review source or runtime configuration to ensure no code paths pass unsanitized options to java(); test by attempting to supply a known-dangerous flag and verifying it is rejected.

Typical attack path

  1. Identify an application endpoint or script that calls nltk.java() with user-supplied parameters
  2. Craft a payload containing dangerous JVM options such as -agentpath:/path/to/malicious.so or @evil.args
  3. Send the payload to the java() call, triggering JVM option injection
  4. JVM loads the attacker-controlled agent or argfile, executing arbitrary native or Java code
  5. Attacker establishes persistence, exfiltrates data, or deploys further malware

How to detect it

Search application and web-server logs for calls to the java() function that contain JVM option strings such as -agentpath, -javaagent, or @; inspect process creation events for unexpected JVM child processes or loaded native libraries; review NLTK usage in source code for any direct option passing.

What your security team should do

  • Immediately upgrade all NLTK installations to 3.10.3 or later
  • Inventory applications and scripts that import or call nltk.java()
  • Add runtime input validation or wrapper restrictions around java() usage until upgrade is complete
  • Monitor EPSS trend and reassess exploit availability; increase priority if exploit code proliferates

The record

NLTK before 3.10.3 fails to validate JVM options passed through the per-call options parameter in the java() function, allowing attackers to inject dangerous JVM flags. Attackers can supply malicious options like -agentpath, -javaagent, or @argfile to Stanford wrapper classes to achieve arbitrary code execution.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities