CVE-2026-63312
NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read
- State
- Published
- Severity
- 8.7 High
- Published
- Aug 22, 2026
- Updated
- Aug 24, 2026
- Reserved
- Jul 16, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.7 High | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
nltknltk |
|
References
- GitHub Security Advisory (GHSA-x5ph-mj9p-rfr8)vendor-advisory
- VulnCheck Advisory: NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Readthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.