CVE-2026-126296
NLTK: Path Traversal in save_maxent_params / load_maxent_params Allow Arbitrary File READ/WRITE
Overview
Description
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.
Source: OX vulnerability database
Severity
MEDIUM
No CVSS vector in the source. Severity comes from the advisory.
Weakness: CWE-73
Affected packages · 3
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/commit/2a92b71827d754ae8920261e7ed0c4bb283ab2d7
- github.com https://github.com/nltk/nltk/pull/3759
- github.com https://github.com/nltk/nltk/releases/tag/v3.10.4
- github.com https://github.com/nltk/nltk/security/advisories/GHSA-59f9-gqg8-mqpj
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126296
- www.vulncheck.com https://www.vulncheck.com/advisories/nltk-before-3.10.4-path-traversal-via-save-maxent-params-and-load-maxent-params
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.