patchminder
Proof of concept · GitHub CVE-2026-0848

Remote code executionin nltk.

Published 5 Mar 2026 · Updated 6 Mar 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.8% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.9.3 or later
In plain words

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.

What to do now
  • Upgrade nltk (PyPI) to 3.9.3 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
nltk/nltk
Not confirmed
Not confirmed
CVE record
nltk (PyPI)
before 3.9.3
3.9.3
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 10 Jan 2026
    CVE ID reserved by @huntr_ai.
  2. 5 Mar 2026
    Published in the CVE List.
  3. 6 Mar 2026
    CVE record last updated.
  4. 29 Mar 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
3 repositories
GitHubno warning signs foundHyperPS/CVE-2026-08480 stars · created 29 Mar 2026nltk.tokenize.StanfordSegmenter dynamically loads external Java .jar files without verification or sandboxing. If an attacker can supply or replace the JAR (e.g., a poisoned model download, MITM packa
GitHubno warning signs foundfevar54/CVE-2026-0848-PoC-Improper-Input-Validation0 stars · created 31 Mar 2026PoC de CVE-2026-0848: validacion de entrada indebida en NLTK que permite ejecucion de codigo via StanfordSegmenter.
GitHubno warning signs foundfevar54/CVE-2026-0848-Scanner---Herramienta-de-Detecci-n0 stars · created 31 Mar 2026Scanner de CVE-2026-0848: detecta instalaciones de NLTK 3.9.2 o inferiores vulnerables. Reportes JSON/HTML/CSV.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other nltk vulnerabilities

Same weakness: Improper input validation

All CWE-20 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-0848: Remote code execution in nltk. https://patchminder.com/cve/cve-2026-0848/ (accessed 5 December 2026).