External Control of File Name or Path in Natural Language Toolkit - #VU142769

 

External Control of File Name or Path in Natural Language Toolkit - #VU142769

Published: August 15, 2026


Vulnerability identifier: #VU142769
CSH Severity: Medium
CVSS v4: 8.7 [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]
CVE-ID: N/A
CWE-ID: CWE-73
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Natural Language Toolkit

Remediation

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.3

External References

Related Security Bulletins