CVE-2026-0846

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.
Configurations

No configuration.

History

No history.

Information

Published : 2026-03-09 20:16

Updated : 2026-03-12 15:16


NVD link : CVE-2026-0846

Mitre link : CVE-2026-0846

CVE.ORG link : CVE-2026-0846


JSON object : View

Products Affected

No product.

CWE
CWE-36

Absolute Path Traversal