CVE-2026-63312

published 22 Aug 2026 · updated 24 Aug 2026

NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.10.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nltk<3.10.03.10.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-63312 severity on Zeptric[![CVE-2026-63312](https://zeptric.io/badge/cve/CVE-2026-63312.svg)](https://zeptric.io/cve/CVE-2026-63312)