Link following in Natural Language Toolkit - #VU142781
Published: August 15, 2026
Vulnerability details
The vulnerability allows a local user to overwrite files outside the intended install root.
The vulnerability exists due to improper link resolution before file access in nltk.downloader.Downloader.download and nltk.downloader.Downloader.incr_download when installing a package into a downloader root containing a pre-existing hardlink. A local user can place a hardlink inside a writable shared downloader directory so that package extraction writes through it to overwrite files outside the intended install root.
Exploitation requires a writable shared downloader root on the same filesystem as the target file.