NLTK Path Traversal via save_maxent_params and load_maxent_params
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
NLTK before 3.10.4 contains a path traversal flaw in save_maxent_params() and load_maxent_params() that bypasses the pathsec filesystem restriction mechanism (CWE-22). An attacker who controls 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.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nltk | nltk | before 3.10.4 | 3.10.4 | Patch available | CNA |
| — | nltk (PyPI) | before 3.10.4 | 3.10.4 | Patch available | GHSA-59f9-gqg8-mqpj |
- nltk Vendornltk Affected before 3.10.4 Fixed in 3.10.4 Patch available CNA
- nltk (PyPI) Vendor— Affected before 3.10.4 Fixed in 3.10.4 Patch available GHSA-59f9-gqg8-mqpj
Remediation
Upgrade NLTK to version 3.10.4, which fixes this issue in the nltk package on PyPI.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA nltk (nltk) Fixed in 3.10.4
- Fix · GHSA-59f9-gqg8-mqpj nltk (PyPI) Fixed in 3.10.4 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
nltk 3.10.4
10 records Highest priority Priority HIGH 2 HIGH, 2 MEDIUM, 6 LOW
Other records, highest priority first
- TI-2026-91241 NLTK denial of service in SteppingRecursiveDescentParser.parse()Priority HIGH 77
- TI-2026-91237 NLTK Quadratic-Time Denial of Service via CCG Lexicon fromstringPriority HIGH 77
- TI-2026-91233 Arbitrary file read in NLTK BllipParser via model pathsPriority MEDIUM 64
Timeline
- 2026-11-13 Threatist record created from CVE-2026-126296
- 2026-11-13 Alias added: GHSA-g5wx-957h-f4wj
- 2026-11-16 Alias added: GHSA-59f9-gqg8-mqpj
- 2026-11-16 Fix available: PyPI/[email protected] · GHSA-59f9-gqg8-mqpj
- 2026-11-16 CVSS score added · GHSA-59f9-gqg8-mqpj
- 2026-11-16 Weakness changed · GHSA-59f9-gqg8-mqpj
- 2026-11-16 6 new references · GHSA-59f9-gqg8-mqpj
References
Advisory 2
More nltk vulnerabilities
- TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
- TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
- TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
- TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
- TI-2026-91241 NLTK denial of service in SteppingRecursiveDescentParser.parse() CVSS 4.0HIGH 8.7
- TI-2026-91237 NLTK Quadratic-Time Denial of Service via CCG Lexicon fromstring CVSS 4.0HIGH 8.7
Sources
- CVE-2026-126296 · CVE Program
- CVE-2026-126296 · NVD
- FIRST EPSS
- GHSA-59f9-gqg8-mqpj · GitHub Advisory Database · CC BY 4.0
- GHSA-g5wx-957h-f4wj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences