CVE-2026-126296: NLTK · Path Traversal in save_maxent_params / load_maxent_params Allow Arbitrary File READ/WRITE
Affects nltkSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.3 Medium : upgrade to 3.10.4 when convenient.
Data as of 16 Nov 2026, 15:34 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 4.8 |
- Patch
- Available – fixed in 3.10.4
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade nltk to 3.10.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available and has been merged into NLTK. The load_maxent_params() function fix is included in all releases since version 3.9.4, and the save_maxent_params() fix is included starting from version 3.10.4. Users should upgrade to NLTK version 3.10.4 or later to remediate this vulnerability. No additional mitigation is required if the software is updated accordingly.
Description
NLTK's save_maxent_params() and load_maxent_params() functions suffer from a path traversal vulnerability that allows arbitrary file read and write outside the intended directories. This occurs because these functions use the Python built-in open() directly on paths derived from a user-controlled argument without enforcing NLTK's pathsec security checks. The vulnerability bypasses the filesystem sandboxing intended by pathsec.ENFORCE, potentially allowing attackers to read or overwrite files outside permitted directories. The issue affects NLTK versions prior to 3.10.4. A fix has been merged and is included starting from version 3.10.4.
References
- github.com/nltk/nltk/security/advisories/GHSA-59f9-gqg8-mqpj (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-126296 (opens in a new tab)
- github.com/nltk/nltk/pull/3759 (opens in a new tab)
- github.com/nltk/nltk/commit/2a92b71827d754ae8920261e7ed0c4bb283ab2d7 (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.4 (opens in a new tab)
- vulncheck.com/advisories/nltk-before-3.10.4-path-traversal-via-save-maxent-params-and-load-maxent-params (opens in a new tab)