Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.6
Nltk 3.9.2 allows attackers to access sensitive system files
CVE-2026-0846
Summary
The nltk library has a flaw in its file handling, allowing attackers to access sensitive files on a system by providing malicious file paths. This could happen if a website or application using nltk allows users to input file paths, potentially exposing sensitive data.ToUpdate nltk to the latest version to fix this issue.
Original title
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 file...
Original 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.
nvd CVSS3.0
8.6
Vulnerability type
CWE-36
Published: 9 Mar 2026 · Updated: 13 Mar 2026 · First seen: 9 Mar 2026