External Control of File Name or Path in Natural Language Toolkit - #VU142769
Published: August 15, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information outside the intended sandbox.
The vulnerability exists due to external control of file name or path in nltk.corpus.reader constructors when processing a caller-supplied corpus root path. A remote attacker can supply a crafted corpus root path to disclose sensitive information outside the intended sandbox.
The issue affects LinThesaurusCorpusReader and PanLexLiteCorpusReader, and the demonstrated reads include a local text file and a local SQLite database even with sandbox enforcement enabled.