CVE Catalog

CVE-2026-0846

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.43%

35th percentile - higher than 35% of all known CVEs

Summary

The `filestring()` function in the `nltk.util` module of NLTK version 3.9.2 contains a vulnerability allowing 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.

Risk Assessment

The risk involves potential reading of sensitive system files such as configuration files, passwords, or keys, which could lead to privilege escalation or information disclosure. The vulnerability can be exploited locally or remotely, especially when the function is used in web APIs or other interfaces that accept user-supplied input.

Recommendation

Immediately update the NLTK library to a patched version or apply a workaround by validating and sanitizing input paths before passing them to the `filestring()` function. For web applications, implement mechanisms to restrict access to system files.

Other vulnerabilities in NLTK

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS