medium6.3
CVE-2026-126296
NLTK before 3.10.4 contains a path traversal vulnerability in save_maxent_params() and load_maxent_params() that bypasses the pathsec filesystem restriction me…
Impact
NLTK before 3.10.4 contains a path traversal vulnerability in save_maxent_params() and load_maxent_params() that bypasses the pathsec filesystem restriction mechanism. Attackers who control the tab_dir argument can read or overwrite model parameter files outside permitted data roots, because the functions call Python's built-in open() directly.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data or systems being changed, low risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | nltk | <= 3.10.3 | 3.10.4 |
Affected products · Nltk
| Product | Affected versions |
|---|---|
| Nltk | before 3.10.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/nltk/nltk/security/advisories/GHSA-59f9-gqg8-mqpj
- https://www.vulncheck.com/advisories/nltk-before-3.10.4-path-traversal-via-save-maxent-params-and-load-maxent-params
- https://github.com/advisories/GHSA-g5wx-957h-f4wj
- https://nvd.nist.gov/vuln/detail/CVE-2026-126296
- https://github.com/advisories/GHSA-59f9-gqg8-mqpj
- https://github.com/nltk/nltk/pull/3759
- https://github.com/nltk/nltk/commit/2a92b71827d754ae8920261e7ed0c4bb283ab2d7
- https://github.com/nltk/nltk/releases/tag/v3.10.4