High severity · published Mar 4, 2026
CVE-2026-0847
Path Traversal in nltk/nltk
7.5
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 61% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NL
nltk/nltk · nltk
through latest · source: vendor
NL
Nltk · Nltk
through 3.9.2 · source: NVD
LC
Lightspeed Core · Red Hat
All versions, or not specified · source: CISA
OL
OpenShift Lightspeed · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Ansible Automation Platform 2 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI (RHOAI) · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 2.25 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 3.3 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-0847
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-0847
Exploit
https://huntr.com/bounties/fc69914f-36a9-4c18-8503-10013b39f966
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:10184
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:19712
access.redhat.com
https://access.redhat.com/security/cve/CVE-2026-0847
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2444608
security.access.redhat.com
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0847.json
More from nltk/nltk
10.0
CVE-2026-0848
Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading
8.8
CVE-2025-14009
Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution
7.8
CVE-2026-12252
Untrusted JAR Code Execution in Multiple Stanford Interface Classes in nltk/nltk
7.5
CVE-2026-12199
Unauthenticated Denial of Service in nltk.app.wordnet_app
7.5
CVE-2026-0846
Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
