CVE-2026-0846
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nltk | PyPI | 3.9.3, 3.9.2 |
| nltk/nltk | nltk | latest |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk/nltk | unspecified |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | OpenShift Lightspeed | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| nltk | nltk/nltk | * |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat OpenShift AI 2.25 | 1775144403 |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | OpenShift Lightspeed | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red 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