CVE-2026-0846 Details
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.
A vulnerability exists in the filestring() function of the nltk.util module, specifically in nltk version 3.9.2. This vulnerability allows arbitrary file reading due to inadequate validation of input paths. The function opens files based on user-supplied input without proper sanitization, enabling access to sensitive system files by providing absolute or traversal paths. The issue can be exploited both locally and remotely, particularly when the function is used in web APIs or other interfaces that accept user input.
Users are advised to update to a patched version of nltk that includes proper input validation in the filestring() function.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:10184 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:19712 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-0846 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2445826 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0846.json | redhat-SADP | |
| https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb | CISA-ADP | ExploitVendor Advisory |
| https://huntr.com/bounties/007b84f8-418e-4300-99d0-bf504c2f97eb | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | redhat-SADP |
| CWE-36 | Absolute Path Traversal | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nltk nltk | 3.9.2 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 17, 2026 | Initial Analysis | [email protected] |
| Mar 12, 2026 | CVE Modified | CISA-ADP |
| Mar 9, 2026 | New CVE Received | [email protected] |