CVE-2026-0848
published critical CVSS 3.0 · 10.0Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nltk | — | nltk/nltkunspecified through latest | Affected | Not stated | @huntr_ai |
| Ubuntu | bionic | nltk | Advisory build | 3.2.5-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | bionic | python-nltk | Advisory build | 3.2.5-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | bionic | python3-nltk | Advisory build | 3.2.5-1ubuntu0.1+esm4 | USN-8302-1 |
| Ubuntu | focal | nltk | Advisory build | 3.4.5-2ubuntu0.1~esm4 | USN-8302-1 |
| Ubuntu | focal | python3-nltk | Advisory build | 3.4.5-2ubuntu0.1~esm4 | USN-8302-1 |
| Ubuntu | jammy | nltk | Advisory build | 3.7-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | jammy | python3-nltk | Advisory build | 3.7-1ubuntu0.1~esm2 | USN-8302-1 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | nltk | Advisory build | 3.8.1-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | noble | python3-nltk | Advisory build | 3.8.1-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | resolute | nltk | Advisory build | 3.9.2-1ubuntu0.1~esm2 | USN-8302-1 |
| Ubuntu | resolute | python3-nltk | Advisory build | 3.9.2-1ubuntu0.1~esm2 | USN-8302-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nltk | nltk/nltk | unspecified through latest (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
1Provider assertions
2@huntr_ai · cna
Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 58f6968418c22e9ba4245a01c2bec588d6e5e5814c6f69a0159a4f03d65aa3a4
- Ingested
- 23 Sep 2026, 08:59:58 UTC
- Source record
- Official CVE record