High severity · published Mar 9, 2026
CVE-2026-0846
Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
7.5
CVSS
0.6%
EPSS
No
On KEV
Description
A vulnerability in the `filestring()` function of the `nltk.util` module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files specified by user input without sanitization, enabling attackers to access sensitive system files by providing absolute paths or traversal paths. This vulnerability can be exploited locally or remotely, particularly in scenarios where the function is used in web APIs or other interfaces that accept user-supplied input.
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.6% · higher than 46% 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
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-0846
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-0846
Exploit
https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb
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-0846
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2445826
security.access.redhat.com
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.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-0847
Path Traversal in nltk/nltk
