CVE-2026-0846
Modified Modified - Updated After Analysis

Arbitrary File Read in NLTK 3.9.2 filestring() Function

Vulnerability report for CVE-2026-0846, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-03-09

Last updated on: 2026-06-30

Assigner: huntr.dev

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-03-09
Last Modified
2026-06-30
Generated
2026-07-06
AI Q&A
2026-03-09
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk 3.9.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-36 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory.
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the filestring() function of the nltk.util module in nltk version 3.9.2. The function improperly validates input paths and directly opens files specified by user input without sanitization. This allows attackers to read arbitrary files on the system by providing absolute or traversal paths.

Impact Analysis

The vulnerability can be exploited both locally and remotely, especially in environments where the filestring() function is used in web APIs or other interfaces that accept user input. Exploitation can lead to unauthorized access to sensitive system files, potentially exposing confidential information and causing confidentiality, integrity, and availability impacts.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

I don't know

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-0846. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart