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.
References
| Link | Resource |
|---|---|
| https://github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8 | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/nltk-streambackedcorpusview-bypasses-pathsec-enforce-arbitrary-file-read | Third Party Advisory |
| https://github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8 | Exploit Vendor Advisory |
Configurations
History
No history.
Information
Published : 2026-08-22 15:16
Updated : 2026-08-31 18:40
NVD link : CVE-2026-63312
Mitre link : CVE-2026-63312
CVE.ORG link : CVE-2026-63312
JSON object : View
Products Affected
nltk
- nltk
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
