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

 

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

Published: November 22, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to disclose parsed contents of readable XML files that match the expected structure and infer the existence or readability of other XML files outside the FrameNet corpus root.

The vulnerability exists due to path traversal in NLTK's FrameNet corpus reader when it opens XML paths without checking that they remain within the corpus root, bypassing the path sandbox even in strict mode. A remote attacker can supply a crafted frame name or provide a crafted corpus index processed by doc() or the lexical-unit loader to access out-of-root XML files.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-12074

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.0

External References

Related Security Bulletins