VDB

CVE-2026-0846

CVE-2026-0846 PUBLISHED CVSS 8.6 HIGH

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

Reported by @huntr_ai · Published March 9, 2026

nltk is fixed in 3.9.3 and 3.9.2 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nltkPyPI3.9.3, 3.9.2
nltk/nltknltklatest

Risk scores

CVSS 3.0
8.6
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Affected products

VendorProductVersions
nltknltk/nltkunspecified
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatOpenShift Lightspeed
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
nltknltk/nltk*
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat OpenShift AI 2.251775144403
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatOpenShift Lightspeed
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2

…and 19 more

Timeline

  • Mar 9, 2026 CVE Published
  • Mar 9, 2026 PoC Published (3 in total, the first dated here)
  • Mar 10, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Apr 18, 2026 CVE Updated
  • Apr 29, 2026 Security Advisory (3 in total, the first dated here)
  • Jul 15, 2026 Distribution Patch (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-0846
vulnetix vdb fixes CVE-2026-0846

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-0846/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›