Description
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.
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk | < 3.10.3 |
References
- https://github.com/nltk/nltk/security/advisories/GHSA-m4rf-3fr8-xwx3Exploit, Mitigation, Vendor Advisory
- https://www.vulncheck.com/advisories/nltk-before-jvm-argument-injection-via-per-call-optionsThird Party Advisory
Timeline
- Published
- Aug 25, 2026
- Last modified
- Sep 1, 2026
- NVD status
- Analyzed