# CVE-2026-63312: NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-22T14:12:40.731Z
- Modified: 2026-10-14T13:10:00.187Z
- Also known as: GHSA-x5ph-mj9p-rfr8, PYSEC-2026-3730
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- nltk nltk: before 3.10.0 (not affected: 3.10.0)
- nltk (PyPI): before 3.10.0

## Every score

- VulnCheck: CVSS: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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 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`
- PyPA Advisory Database: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-streambackedcorpusview-bypasses-pathsec-enforce-arbitrary-file-read> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63312> (advisory)
- <https://github.com/nltk/nltk/pull/3588> (web)
- <https://github.com/nltk/nltk/commit/674ea75accdf08eca3782dee0a9c4ed7e0d0025b> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.0> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3730.yaml> (web)

## Sources

- CVE List: [CVE-2026-63312](https://www.cve.org/CVERecord?id=CVE-2026-63312), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-x5ph-mj9p-rfr8](https://github.com/advisories/GHSA-x5ph-mj9p-rfr8), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-63312](https://nvd.nist.gov/vuln/detail/CVE-2026-63312), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-3730](https://osv.dev/vulnerability/PYSEC-2026-3730), CC-BY-4.0, modified 2026-09-01

---

Page: https://cve.day/CVE-2026-63312 · Whole record: https://cve.day/CVE-2026-63312.json · Rebuilt by cve.day 2026-11-25T22:59:34.876Z
