NLTK versions from 3.9.4 up to but not including 3.10.4 contain a vulnerability in the nltk.pathsec.ZipFile archive extraction component. The extraction process fails to properly check for hardlinks inside the extraction root, allowing a local attacker with write access to the NLTK data root to pre-plant a hardlink that points outside the root. When NLTK extracts a package, it overwrites the target of that hardlink outside the data root, leading to arbitrary file truncation and overwriting. This can result in complete integrity loss of the targeted file. The vulnerability requires local access and suitable permissions to create hardlinks and is mitigated by a fix released in version 3.10.4.