CVE-2026-63312
NLTK before 3.10.0 contains an arbitrary local file read …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/security/advisories/GHSA-x5ph-mj9p-rfr8
- www.vulncheck.com/advisories/nltk-streambackedcorpusview-bypasses-pathsec-enforce-arbitrar
- nvd.nist.gov/vuln/detail/CVE-2026-63312
- github.com/nltk/nltk/pull/3588
- github.com/nltk/nltk/commit/674ea75accdf08eca3782dee0a9c4ed7e0d0025b
- github.com/nltk/nltk/releases/tag/v3.10.0
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3730.yaml
- github.com/advisories/GHSA-x5ph-mj9p-rfr8
- nvd.nist.gov/vuln/detail/CVE-2026-63312
- cve.org/CVERecord?id=CVE-2026-63312
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.