Path traversal in Natural Language Toolkit - CVE-2026-12072

 

Path traversal in Natural Language Toolkit - CVE-2026-12072

Published: November 22, 2026


Vulnerability identifier: #VU169289
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: CVE-2026-12072
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass NLTK's strict path sandbox and read parsed NKJP header content from outside the corpus root.

The vulnerability exists due to path traversal in NKJPCorpusReader when it resolves fileids without checking path containment and opens files without invoking sandbox validation. A remote attacker can influence an application's corpus file selection to retrieve out-of-root header content or cause other reader methods to open and read out-of-root files without returning their contents.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-12072

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.0

External References

Related Security Bulletins