CVE-2026-63312Published Aug 22, 2026 · Aug 22Updated Oct 28
NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read
nltk
High8.7Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nltk PyPI |
|
|
Original description
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.
From the CVE record · VulnCheck