NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 3.10.0 : patch nltk soon.
Data as of 24 Nov 2026, 20:49 UTC
- Patch
- Available – fixed in 3.10.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10nltkpkg:deb/ubuntu/nltk?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in NLTK version 3.10.0 and later. Users should upgrade to version 3.10.0 or newer to remediate this vulnerability. The linked Debian security tracker provides additional patch information. No other mitigations are specified by the vendor advisory.
Description
NLTK versions before 3.10.0 contain a high-severity vulnerability in the StreamBackedCorpusView component that allows arbitrary local file reads. This occurs because the code bypasses the pathsec.ENFORCE security mechanism by calling builtins.open() directly instead of pathsec.open(). An attacker who can control the fileid argument can exploit this to read sensitive local files, including system files and application credentials.
References
- ubuntu.com/security/CVE-2026-63312 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-63312 (opens in a new tab)
- github.com/nltk/nltk/security/advisories/ghsa-x5ph-mj9p-rfr8 (opens in a new tab)
- security-tracker.debian.org/tracker/cve-2026-63312 (opens in a new tab)
- github.com/cveproject/cvelistv5/tree/main/cves/2026/63xxx/cve-2026-63312.json (opens in a new tab)
- nvd.nist.gov/vuln/detail/cve-2026-63312 (opens in a new tab)
- vulncheck.com/advisories/nltk-streambackedcorpusview-bypasses-pathsec-enforce-arbitrary-file-read (opens in a new tab)