Skip to main content
← All vulnerabilities
CVE-2026-63312PYSEC-2026-3730GHSA-X5PH-MJ9P-RFR8

NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read

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

Summary

NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling builtins.open() directly instead of pathsec.open(). Attackers who control the fileid argument can read arbitrary local files regardless of the ENFORCE setting, including sensitive system files and application credentials.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • nltk nltk

    fixed in 3.10.0

  • nltkPyPI

    fixed in 3.10.0

References 2

GitHub · nltk/nltk

vulncheck.com