Path traversal in Natural Language Toolkit - #VU169291

 

Path traversal in Natural Language Toolkit - #VU169291

Published: November 22, 2026


Vulnerability identifier: #VU169291
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to create or overwrite files outside the permitted NLTK data directories and infer whether out-of-directory files exist or can be parsed as Weka models.

The vulnerability exists due to missing model-path containment checks in NLTK's WekaClassifier when it passes caller-supplied paths to Weka for model saving or loading. A remote attacker can supply a model path outside the permitted directories to write a serialized model during training or observe file-loading behavior during classification without receiving raw file contents.


Affected software

Natural Language Toolkit

Remediation

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins