patchminder
Proof of concept · GitHub CVE-2026-0847

Remote code executionin nltk.

Published 4 Mar 2026 · Updated 16 Sep 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.6
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. 1.0% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.9.3 or later
In plain words

A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.

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. 4 Mar 2026
    Published in the CVE List.
  3. 29 Mar 2026
    First public proof of concept on GitHub.
  4. 16 Sep 2026
    CVE record last updated.
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
1 repository
GitHubno warning signs foundHyperPS/CVE-2026-08470 stars · created 29 Mar 2026A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and Brack

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: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

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