Remote code executionin nltk.
Proof of concept public (GitHub).
NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamically loads external Java .jar files without verification or sandboxing. An attacker can supply or replace the JAR file, enabling the execution of arbitrary Java bytecode at import time. This vulnerability can be exploited through methods such as model poisoning, MITM attacks, or dependency poisoning, leading to remote code execution. The issue arises from the direct execution of the JAR file via subprocess with unvalidated classpath input, allowing malicious classes to execute when loaded by the JVM.
- Upgrade nltk (PyPI) to 3.9.3 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 10 Jan 2026CVE ID reserved by @huntr_ai.
- 5 Mar 2026Published in the CVE List.
- 6 Mar 2026CVE record last updated.
- 29 Mar 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other nltk vulnerabilities
Same weakness: Improper input validation
Patchminder. CVE-2026-0848: Remote code execution in nltk. https://patchminder.com/cve/cve-2026-0848/ (accessed 5 December 2026).