CVE-2026-79675
Critical · 9.8CVSS
9.8
EPSS
0.8%
Published
Aug 25, 2026
CISA due date
—
Cloudanix analysis
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.
- 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
- Identify an application endpoint or script that calls nltk.java() with user-supplied parameters
- Craft a payload containing dangerous JVM options such as -agentpath:/path/to/malicious.so or @evil.args
- Send the payload to the java() call, triggering JVM option injection
- JVM loads the attacker-controlled agent or argfile, executing arbitrary native or Java code
- 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
- CVE-2026-97350 Securepoint SSL VPN Client v2 on Windows contains vulnerabilities in the handling of… CWE-88
- CVE-2026-91909 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-62968 Dream Displays provides in-game screens for streaming videos in Minecraft. CWE-88
- CVE-2026-116252 pgAdmin 4's materialized view refresh passed the target database's name to psql's… CWE-88
- CVE-2026-111504 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-119282 Nx is a monorepo solution for TypeScript and polyglot codebases. CWE-88
- CVE-2026-90868 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88
- CVE-2026-90865 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88