CVE-2026-0846 json
Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
published 2026-03-09 8 mo ago modified 2026-09-16 53 d ago also GHSA-h8wq-7xc4-p3qx , PYSEC-2026-97 , EUVD-2026-10350
- cvss
- 8.6
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi nltk 3.9.3
- Red Hat Red Hat OpenShift AI 2.25 1775144403
- Red Hat Red Hat OpenShift AI 3.3 1778262893, 1778263054
- nltk Debian 14 3.9.3-1
debian advisories DEBIAN-CVE-2026-0846
- nltk Ubuntu Pro 14.04 LTS 2.0~b9-0ubuntu4.1~esm6
- nltk Ubuntu Pro 16.04 LTS 3.1-1ubuntu0.1+esm4
- nltk Ubuntu Pro 18.04 LTS 3.2.5-1ubuntu0.1+esm4
- nltk Ubuntu Pro 20.04 LTS 3.4.5-2ubuntu0.1~esm4
- nltk Ubuntu Pro 22.04 LTS 3.7-1ubuntu0.1~esm2
- nltk Ubuntu Pro 24.04 LTS 3.8.1-1ubuntu0.1~esm2
- nltk Ubuntu Pro 26.04 LTS 3.9.2-1ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2026-0846
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/nltk/nltk@b2e1164 commit
- github.com/nltk/nltk#3485 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-0846 updated cvss 7.5
nltk: NLTK: Arbitrary file read via improper path validation in `filestring()` function
-
Red Hat Lightspeed Core lightspeed-core/lightspeed-stack-rhel9affected: no fix available
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/lightspeed-chatbot-rhel8, ansible-automation-platform-26/lightspeed-chatbot-rhel9affected: no fix available, no fix planned “Will not fix”
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-ta-lmes-job-rhel9affected: no fix planned “Will not fix”
-
Red Hat OpenShift AI 2.25 rhoai 1775144403fixed: vendor fix RHSA-2026:10184
-
Red Hat OpenShift AI 3.3 rhoai 1778262893, rhoai 1778263054fixed: vendor fix RHSA-2026:19712
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-ocp-rag-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/ee-minimal-rhel8, ansible-automation-platform-24/ee-minimal-rhel9, +21 more Red Hat OpenShift AI 2.25 rhoai 1776243157, rhoai 1776243163, rhoai 1776243192, rhoai 1776243217, rhoai 1776243229, rhoai 1776243238, +70 more Red Hat OpenShift AI 3.3 rhoai 1778239104, rhoai 1778262829, rhoai 1778262856, rhoai 1778262907, rhoai 1778262952, rhoai 1778262982, +74 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 7 mo ago
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | nltk | <3.9.3 <=3.9.2 |
3.9.3 |
Affected products
- nltk nltk/nltk
- Red Hat Red Hat OpenShift AI 2.25
- Red Hat Red Hat OpenShift AI 3.3
- Red Hat Lightspeed Core
- Red Hat OpenShift Lightspeed
- Red Hat Red Hat Ansible Automation Platform 2
- Red Hat Red Hat OpenShift AI (RHOAI)
Classification
References
-
github.com
/nltk/nltk/pull/3485
web
-
github.com
/nltk/nltk/commit/b2e1164bf89277f79b65406c829b99fb20ca1974
web
-
huntr.com
/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb
exploit, web, vendor-advisory, evidence
-
access.redhat.com
/errata/RHSA-2026:10184
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:19712
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2026-0846
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2445826
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2026/cve-2026-0846.json
-
nvd.nist.gov
/vuln/detail/CVE-2026-0846
advisory
-
github.com
/nltk/nltk
package
-
github.com
/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-97.yaml
web
-
github.com
/advisories/GHSA-h8wq-7xc4-p3qx
advisory
Sources
- CVE List CVE-2026-0846
- GitHub Advisory GHSA-h8wq-7xc4-p3qx
- NVD CVE-2026-0846
- OSV PYSEC-2026-97
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.