CVE-2026-0848
Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading
Reported by @huntr_ai · Published March 5, 2026
nltk is fixed in 3.9.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nltk | PyPI | 3.9.3 |
| nltk | nltk | 3.9.2 |
| nltk/nltk | nltk | latest |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk/nltk | unspecified |
| nltk | nltk/nltk | * |
Timeline
- Mar 5, 2026 CVE Published
- Mar 5, 2026 PoC Published (10 in total, the first dated here)
- Mar 6, 2026 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 CVE Updated
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- May 28, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-0848
vulnetix vdb fixes CVE-2026-0848
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-0848/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart