Skip to content
Fencer Intel
high 8.6

CVE-2026-0846 json

Arbitrary File Read via Absolute Path Input in nltk.util.filestring()

published 8mo ago modified last mo. 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

Is CVE-2026-0846 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-rhel9
    affected: 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-rhel9
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-ta-lmes-job-rhel9
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift AI 2.25 rhoai 1775144403
    fixed: vendor fix RHSA-2026:10184
  • Red Hat OpenShift AI 3.3 rhoai 1778262893, rhoai 1778263054
    fixed: 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 more
    not 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
7mo ago

Exploit prediction

0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-09).

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

Weakness
  • CWE-36 Absolute Path Traversal
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel 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.