Skip to main content
Public proof of conceptFix available

CVE-2026-0848

A public proof of concept exists; no exploitation attested.

  • Published2026-03-05
  • WeaknessCWE-20

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-03-0521:16CVE publishedNVD

Versions per branch

NVD · OSV
Nltk
BranchAffectedFixed in
3.9≤ 3.9.2no fix published
nltk
BranchAffectedFixed in
3.9< 3.9.33.9.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As @huntr_ai, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • nltk/nltk
    Affected
    • ≤ latestno fix statedcustom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-03-05

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • nltkUbuntu:Pro:26.04:LTSall versions · fixed in 3.9.2-1ubuntu0.1~esm2
  • nltkUbuntu:Pro:24.04:LTSall versions · fixed in 3.8.1-1ubuntu0.1~esm2
  • nltkUbuntu:Pro:22.04:LTSall versions · fixed in 3.7-1ubuntu0.1~esm2
  • nltkUbuntu:Pro:20.04:LTSall versions · fixed in 3.4.5-2ubuntu0.1~esm4
  • nltkUbuntu:Pro:18.04:LTSall versions · fixed in 3.2.5-1ubuntu0.1+esm4
  • nltkUbuntu:Pro:16.04:LTSall versions · fixed in 3.1-1ubuntu0.1+esm4
  • nltkUbuntu:Pro:14.04:LTSall versions · fixed in 2.0~b9-0ubuntu4.1~esm6
  • nltkUbuntu:26.10all versions · no fixed version listed

4 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-0848 Red Hat Product Security

    nltk: NLTK: Arbitrary code execution via unvalidated Java Archive (JAR) file loading

Full record on NVD

Fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
2026-03-05
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-v2w2-xcg6-53wj

Frequently asked questions

What is CVE-2026-0848?

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.

Is CVE-2026-0848 actively exploited?

A proof-of-concept exploit exists for CVE-2026-0848, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-0848?

CVE-2026-0848 has a CVSS v3 base score of 10 (Critical severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.

Running nltk? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record