# CVE-2026-0848: Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading

- Severity: Critical 10.0 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-05T20:48:05.364Z
- Modified: 2026-06-17T10:11:29.703Z
- Also known as: PYSEC-2026-99
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- nltk nltk/nltk: from unspecified up to latest
- nltk nltk: up to 3.9.2
- nltk (PyPI): before 3.9.3

## Every score

- @huntr_ai: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/08b109bb-ac24-403f-9422-1c246ce60202> (exploit, evidence, vendor-advisory)

## Sources

- CVE List: [CVE-2026-0848](https://www.cve.org/CVERecord?id=CVE-2026-0848), CVE Terms of Use, modified 2026-03-06
- NVD: [CVE-2026-0848](https://nvd.nist.gov/vuln/detail/CVE-2026-0848), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-99](https://osv.dev/vulnerability/PYSEC-2026-99), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-0848 · Whole record: https://cve.day/CVE-2026-0848.json · Rebuilt by cve.day 2026-11-25T22:59:15.336Z
