NetSight
medium6.3

CVE-2026-126296

NLTK before 3.10.4 contains a path traversal vulnerability in save_maxent_params() and load_maxent_params() that bypasses the pathsec filesystem restriction me…

Impact

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.

An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data or systems being changed, low risk of outages.

Affected packages

EcosystemPackageAffectedFixed in
pipnltk<= 3.10.33.10.4

Affected products · Nltk

ProductAffected versions
Nltk
before 3.10.4

Weakness classification

References