CVE-2026-126296
Awaiting Analysis Awaiting Analysis - Queue

Path Traversal in NLTK Before 3.10.4

Vulnerability report for CVE-2026-126296, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-13

Last updated on: 2026-11-13

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-13
Last Modified
2026-11-13
Generated
2026-11-13
AI Q&A
2026-11-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk to 3.10.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-73 The product allows user input to control or influence paths or file names that are used in filesystem operations.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

NLTK before version 3.10.4 has a path traversal flaw in save_maxent_params() and load_maxent_params() functions. These functions bypass the pathsec filesystem restriction, allowing attackers who control the tab_dir argument to read or overwrite model parameter files outside allowed directories by directly using Python's open() function.

Detection Guidance

Check NLTK version with pip show nltk. If version is <=3.10.3, the system is vulnerable. Inspect code using save_maxent_params() or load_maxent_params() in nltk/classify/maxent.py for direct open() calls without pathsec validation.

Impact Analysis

An attacker could exploit this to access or modify sensitive files on your system, potentially leading to data leaks, unauthorized changes, or system compromise if they control the tab_dir argument in affected NLTK functions.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's data protection principles or HIPAA's security requirements for protected health information, potentially resulting in compliance breaches and legal penalties.

Mitigation Strategies

Upgrade NLTK to the latest version. If upgrading is not possible, apply patches from commits f2556f9 and 2a92b71. Ensure all calls to save_maxent_params() and load_maxent_params() use pathsec.open() instead of open().

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126296. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...