cve.bz

CVE-2026-0846 nltk nltk: Absolute Path Traversal

7.5 highExploit referenceEPSS 0.6%Fix available

High (7.5) in nltk nltk. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in nltk 3.9.3.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-03-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-36 Absolute Path Traversal
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-0846 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-0846?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-0846?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-0846 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
nltk/nltkthrough latest

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h8wq-7xc4-p3qxPyPInltk<3.9.33.9.3
PYSEC-2026-97PyPInltk<=3.9.2no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13nltkno fix listedDEBIAN-CVE-2026-0846
Debian14nltk3.9.3-1DEBIAN-CVE-2026-0846
Ubuntu25.10, 26.10nltkno fix listedUBUNTU-CVE-2026-0846
UbuntuPro:14.04:LTSnltk2.0~b9-0ubuntu4.1~esm6UBUNTU-CVE-2026-0846
UbuntuPro:16.04:LTSnltk3.1-1ubuntu0.1+esm4UBUNTU-CVE-2026-0846
UbuntuPro:18.04:LTSnltk3.2.5-1ubuntu0.1+esm4UBUNTU-CVE-2026-0846
UbuntuPro:20.04:LTSnltk3.4.5-2ubuntu0.1~esm4UBUNTU-CVE-2026-0846
UbuntuPro:22.04:LTSnltk3.7-1ubuntu0.1~esm2UBUNTU-CVE-2026-0846
UbuntuPro:24.04:LTSnltk3.8.1-1ubuntu0.1~esm2UBUNTU-CVE-2026-0846
UbuntuPro:26.04:LTSnltk3.9.2-1ubuntu0.1~esm2UBUNTU-CVE-2026-0846

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This IMPORTANT vulnerability in NLTK allows arbitrary file reads through the `nltk.util.filestring()` function. Exploitation requires no authentication and is network-accessible when the function is exposed to untrusted input. Impact is high confidentiality loss as sensitive files like credentials and configuration can be read. Red Hat products using NLTK with exposed file input handling are affected.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1775144403Fixed 2026-04-23RHSA-2026:10184
Red Hat OpenShift AI 3.3rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1778262893Fixed 2026-05-20RHSA-2026:19712
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1778263054Fixed 2026-05-20RHSA-2026:19712
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Will not fix
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-supported-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-supported-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-supported-rhel8Not affected
17 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-0846.

Attack patterns (CAPEC)

  • CAPEC-597 Absolute Path Traversal
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON