CVE-2026-63312
High
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.
SeverityHigh
CVSS7.5
Exploit probability—
ProductNltk
PublishedAug 22, 2026
First seenAug 22, 2026
Weakness typeCWE-22Path traversal
How to fix
Update
- nltk nltk3.10.0 or later
- nltk3.10.0 or later
Vendor advisories
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nltk nltk | v < 3.10.0 | 3.10.0 |
| nltkPyPI | v < 3.10.0 | 3.10.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.