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() 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*

History

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) NLTK anterior a la versión 3.10.0 contiene una vulnerabilidad de lectura arbitraria de archivos locales en StreamBackedCorpusView que omite pathsec.ENFORCE al llamar directamente a builtins.open() en lugar de pathsec.open(). Los atacantes que controlan el argumento fileid pueden leer archivos locales arbitrarios independientemente de la configuración de ENFORCE, incluyendo archivos de sistema sensibles y credenciales de aplicación.

Information

Published : 2026-08-22 15:16

Updated : 2026-10-14 13:10


NVD link : CVE-2026-63312

Mitre link : CVE-2026-63312

CVE.ORG link : CVE-2026-63312


JSON object : View

Products Affected

nltk

  • nltk
CWE
CWE-22

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