CVE-2026-0848 Details
Description
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.
A vulnerability allowing arbitrary code execution exists in NLTK versions through 3.9.2, specifically within the StanfordSegmenter module. The issue stems from inadequate input validation, as the module loads external Java .jar files without proper verification or sandboxing. This flaw enables an attacker to substitute the JAR file with a malicious one, which is then executed by the Java Virtual Machine (JVM) when the segmenter is used. Exploitation can occur through model poisoning, man-in-the-middle attacks, or dependency poisoning, leading to remote code execution.
Users can update to NLTK version 3.9.3 or later, where this vulnerability has been fixed. The fix involves adding verification for the JAR files used by the StanfordSegmenter, ensuring that only trusted or user-validated files are executed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/08b109bb-ac24-403f-9422-1c246ce60202 | CISA-ADP | ExploitVendor Advisory |
| https://huntr.com/bounties/08b109bb-ac24-403f-9422-1c246ce60202 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nltk nltk | <= 3.9.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | Initial Analysis | [email protected] |
| Mar 6, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | New CVE Received | [email protected] |