CVE-2026-0846: CWE-36 Absolute Path Traversal in nltk nltk/nltk
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-0846 in nltk version 3.9.2 arises from the filestring() function in the nltk.util module not sanitizing user-supplied file paths. This allows attackers to specify absolute or directory traversal paths, leading to arbitrary file read access. The CVSS 3.0 score is 8.6, indicating high severity with network attack vector, low attack complexity, no privileges or user interaction required, and impacts confidentiality, integrity, and availability. The vulnerability is documented by Red Hat advisories, but no explicit patch or fix version is stated in the provided data.
Potential Impact
Successful exploitation allows an attacker to read arbitrary files on the system where nltk 3.9.2 is used, potentially exposing sensitive information. The vulnerability affects confidentiality (high impact), integrity (low impact), and availability (low impact). It can be exploited remotely if the vulnerable function is exposed via web APIs or other interfaces accepting user input.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The Red Hat advisories linked do not explicitly mention a fixed version or patch for nltk 3.9.2. Until an official fix is available, avoid exposing the filestring() function to untrusted input or implement input validation and sanitization to prevent absolute path or directory traversal inputs.
CVE-2026-0846: CWE-36 Absolute Path Traversal in nltk nltk/nltk
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.
CVSS v3.0
Score 8.6high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-0846 in nltk version 3.9.2 arises from the filestring() function in the nltk.util module not sanitizing user-supplied file paths. This allows attackers to specify absolute or directory traversal paths, leading to arbitrary file read access. The CVSS 3.0 score is 8.6, indicating high severity with network attack vector, low attack complexity, no privileges or user interaction required, and impacts confidentiality, integrity, and availability. The vulnerability is documented by Red Hat advisories, but no explicit patch or fix version is stated in the provided data.
Potential Impact
Successful exploitation allows an attacker to read arbitrary files on the system where nltk 3.9.2 is used, potentially exposing sensitive information. The vulnerability affects confidentiality (high impact), integrity (low impact), and availability (low impact). It can be exploited remotely if the vulnerable function is exposed via web APIs or other interfaces accepting user input.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The Red Hat advisories linked do not explicitly mention a fixed version or patch for nltk 3.9.2. Until an official fix is available, avoid exposing the filestring() function to untrusted input or implement input validation and sanitization to prevent absolute path or directory traversal inputs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-01-10T23:22:13.648Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-0846","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","vendor":"Red Hat"}]
Threat ID: 69af20b9ea502d3aa8b98ce9
Added to database: 03/09/2026, 19:34:17 UTC
Last enriched: 07/15/2026, 08:24:00 UTC
Last updated: 07/28/2026, 08:52:00 UTC
Views: 228
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.