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

Configuration 1 (hide)

cpe:2.3:a:nltk:nltk:3.9.2:*:*:*:*:*:*:*

History

No history.

Information

Published : 2026-03-09 20:16

Updated : 2026-07-15 02:17


NVD link : CVE-2026-0846

Mitre link : CVE-2026-0846

CVE.ORG link : CVE-2026-0846


JSON object : View

Products Affected

nltk

  • nltk
CWE
CWE-36

Absolute Path Traversal

CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')