Link following in Natural Language Toolkit - CVE-2026-128135
Published: November 16, 2026
Vulnerability details
The vulnerability allows a local user to truncate and overwrite files outside the NLTK data root, potentially causing a denial of service.
The vulnerability exists due to improper hardlink resolution in nltk.pathsec.ZipFile extraction when writing archive members without checking destination inode link counts. A local user can pre-plant a permitted hardlink inside a writable data root at an expected package member path to overwrite its outside-root target during subsequent extraction, with attacker-chosen replacement content possible through an attacker-influenced package mirror or index.