← Vulnerability feed

Vulnerability record · CVE-2026-0846 · published 9 March 2026

CVE-2026-0846: Nltk path traversal vulnerability

Nltk · Nltk

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.

7.5 CVSS 3.1 High EPSS 0.53% · top 57.5% CWE-36 · CWE-36CWE-22 · Path traversal
7.5CVSS 3.1 base score
0.53%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
7References, 2 tagged exploit
15 Jul 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-0846 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2026-0848Nltk improper input validation vulnerabilityNLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamic…EPSS 0.81%9.4CVE-2026-78683Nltk deserialization of untrusted data vulnerabilityNLTK before 3.10.0 (affected versions <=3.9.4) contains an unsafe pickle deserialization vulnerability in the TransitionParser.parse() method (nltk/p…EPSS 0.51%9.3CVE-2026-79675Nltk argument injection vulnerabilityNLTK before 3.10.3 fails to validate JVM options passed through the per-call options parameter in the java() function, allowing attackers to inject d…EPSS 0.78%9.3CVE-2026-79657Nltk deserialization of untrusted data vulnerabilityNLTK versions before 3.10.3 contain a remote code execution vulnerability in allowlisted pickle loaders that trust entire module namespaces instead o…EPSS 1.3%8.8CVE-2026-79674Nltk vulnerabilityNLTK versions before 3.10.3 contain a path sandbox bypass vulnerability in corpus-reader constructors that allows attackers to read files outside the…EPSS 0.39%8.8CVE-2025-14009Nltk code injection vulnerabilityA critical vulnerability exists in the NLTK downloader component of nltk/nltk, affecting all versions. The _unzip_iter function in nltk/downloader.py…EPSS 0.95%8.7CVE-2026-81722Nltk vulnerabilitynltk PorterStemmer in versions <= 3.10.2 (fixed in 3.10.3) contains an inefficient-algorithmic-complexity denial of service in PorterStemmer.stem(). …EPSS 0.52%8.7CVE-2026-80205Nltk inefficient regular expression (redos) vulnerabilityNLTK versions before 3.10.0 contain a regular expression denial of service vulnerability in Text.findall() and TokenSearcher.findall() methods that a…EPSS 0.65%

Source: NIST National Vulnerability Database (record CVE-2026-0846), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.