NetSight
high7.5

CVE-2026-63312

NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling builtins.open() direc…

Impact

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 packages

EcosystemPackageAffectedFixed in
pipnltk<= 3.9.43.10.0

Affected products

VendorProductAffected versions
NltkNltk
before 3.10.0

Weakness classification

References