CVE-2026-126296

NLTK: Path Traversal in save_maxent_params / load_maxent_params Allow Arbitrary File READ/WRITE

Medium published · updated · also known as GHSA-59F9-GQG8-MQPJ

6.3
CVSS score out of 10 · NVD (vulncheck.com)

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.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
nltk pip <= 3.10.33.10.4 GitHub

References