Skip to content
CVE PROGRAM SOURCE RECORD8.7 High

CVE-2026-63312

NLTK StreamBackedCorpusView Bypasses pathsec.ENFORCE Arbitrary File Read

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

nltk nltk

Default version status: unaffected

  • 0 to < 3.10.0affected
  • 3.10.0unaffected
pkg:pypi/nltk

References