CVE-2026-0848 — Vulnerability in nltk — CVE Details
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.94%). Schedule for your next planned update.
Does your project use an affected nltk version?
Paste your requirements.txt to check it for CVE-2026-0848 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published March 5, 2026 (266 days ago).
- Last revised May 20, 2026 — 76 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "nltk>=3.9.3"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| nltk PyPI · Affected: 0.8, 0.9, 0.9.3, 0.9.4 (+59 more) | 3.9.3 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-0848?
- This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2026-0848?
- CVE-2026-0848 affects nltk. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-0848 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 59.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-79674HIGH
- CVE-2026-81722HIGH
- CVE-2026-12252HIGH
NLTK Stanford wrapper classes execute untrusted JAR files without verification
- CVE-2026-129234HIGH
NLTK: Untrusted search path in prover9/mace4 config allows local code execution via relative binary_location
- CVE-2024-39705HIGH
ntlk unsafe deserialization vulnerability
- CVE-2026-126297HIGH
NLTK: Quadratic-time CPU denial of service in ConllCorpusReader SRL instance builder via nested span rescan
- CVE-2026-79676MEDIUM
- CVE-2026-81723MEDIUM
NLTK: Quadratic CPU Exhaustion in `XMLCorpusView._read_xml_fragment()`