CVE-2026-63312 PUBLISHED

NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read

Assigner: VulnCheck
Reserved: 16.07.2026 Published: 22.08.2026 Updated: 22.08.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 8.7

Product Status

Vendor nltk
Product nltk
Versions Default: unaffected
  • affected from 0 to 3.10.0 (excl.)
  • Version 3.10.0 is unaffected

Credits

  • meme-dm reporter

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE