Vulnerability · Published Mar 9, 2026 · Assigned by @huntr_ai
CVE-2026-0846Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
High 7.5
In plain English
A high-severity path traversal in nltk/nltk from nltk. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nltk | no fix listed | DEBIAN-CVE-2026-0846 |
| Debian:13 | nltk | no fix listed | DEBIAN-CVE-2026-0846 |
| Debian:14 | nltk | 3.9.3-1 | DEBIAN-CVE-2026-0846 |
| PyPI | nltk | no fix listed | PYSEC-2026-97 |
| PyPI | nltk | 3.9.3 | GHSA-h8wq-7xc4-p3qx |
| Ubuntu:25.10 | nltk | no fix listed | UBUNTU-CVE-2026-0846 |
| Ubuntu:26.10 | nltk | no fix listed | UBUNTU-CVE-2026-0846 |
Affected products (as reported)
Weakness: CWE-36, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb
- https://access.redhat.com/security/cve/CVE-2026-0846 vdb-entry, x_refsource_REDHAT
- RHBZ#2445826 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:10184 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19712 vendor-advisory, x_refsource_REDHAT