Skip to main content
← All vulnerabilities
CVE-2026-0846GHSA-H8WQ-7XC4-P3QXPYSEC-2026-97

Arbitrary File Read via Absolute Path Input in nltk.util.filestring()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • nltk nltk/nltk

    Version range not reported

  • nltkPyPI

    fixed in 3.9.3

  • nltkPyPI

    through 3.9.2

References 1

huntr.com