Skip to main content
Public proof of conceptFix available

CVE-2026-0847

Path Traversal in nltk/nltk

A public proof of concept exists; no exploitation attested.

  • Published2026-03-04
  • WeaknessCWE-22

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

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.

Timeline

dates in UTC
  1. 2026-03-0419: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-04

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

6 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-0847 Red Hat Product Security4 products fixed · 6 known affected

    nltk: NLTK: Arbitrary file read via path traversal vulnerability

    lightspeed-core/lightspeed-stack-rhel9 as a component of Lightspeed Core · openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 as a component of OpenShift Lightspeed · openshift-lightspeed/lightspeed-service-api-rhel9 as a component of OpenShift Lightspeed · +3 more

  • RHSA-2026:19712 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: RHOAI 3.3.3 - Red Hat OpenShift AI

  • RHSA-2026:10184 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: RHOAI 2.25.5 - Red Hat OpenShift AI

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2026:19712 · 2 productsFor Red Hat OpenShift AI 3.3.3 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
  2. Vendor fix Red Hat Product Security RHSA-2026:10184 · 2 productsFor Red Hat OpenShift AI 2.25.5 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
  3. No fix available, says the vendor Red Hat Product Security CVE-2026-0847 · 2 productsAffected
  4. No fix planned, says the vendor Red Hat Product Security CVE-2026-0847 · 4 productsWill not fix

Advisories and patches

Detection

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

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2026-03-04
Last modified
2026-07-15
NVD status
Modified
GitHub advisory
GHSA-68j8-pq59-fqgm

Frequently asked questions

What is CVE-2026-0847?

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.

Is CVE-2026-0847 actively exploited?

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

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

CVE-2026-0847 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

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