NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root
nltk
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nltk nltk |
| No fix yet |
Original description
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.9.4 to 3.10.3, NLTK ZIP package extraction can write through an existing in-root hardlink whose other link points outside the NLTK data root. A local attacker who can prepare the extraction target can cause a package member write to overwrite an out-of-root file, violating the pathsec containment boundary and affecting integrity and availability. This issues is fixed in version 3.10.4.
From the CVE record · GitHub_M