HighGHSA-mr7p-25v2-35wrCVE-2019-14751PYSEC-2019-106
NLTK Vulnerable To Path Traversal
Published 23 Aug 2019 · Updated 7 Oct 2024
Is your project on an affected nltk?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
nltkPyPI
- Affected
- <3.4.5
- Fixed in
- 3.4.5
Update to the fixed version for your release line, for example:
pip install 'nltk>=3.4.5'Details
NLTK Downloader before 3.4.5 is vulnerable to a directory traversal, allowing attackers to write arbitrary files via a ../ (dot dot slash) in an NLTK package (ZIP archive) that is mishandled during extraction.
Is GHSA-mr7p-25v2-35wr in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected nltk, and gives you the command that fixes it.
More advisories for nltk
- HighCVE-2026-128135NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root · 19 Nov 2026
- MediumCVE-2026-128136NLTK: AllowlistUnpickler does not deny numpy submodule-local file-I/O sinks · 19 Nov 2026
- MediumCVE-2026-128137NLTK corpus-reader view methods bypass the scoped root sandbox via intermediate-directory symlinks · 19 Nov 2026
- CriticalCVE-2026-128138NLTK incomplete fix: additional JVM/JAR sandbox bypass through unvalidated launcher tokens in java() command arguments · 19 Nov 2026
- HighCVE-2026-128139NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service · 19 Nov 2026
- MediumCVE-2026-128140NLTK: Downloader cyclic collection indices cause an infinite closure walk · 19 Nov 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-14751
- Linkgithub.com/nltk/nltk/commit/f59d7ed8df2e0e957f7f247fe218032abdbe9a10
- Advisorygithub.com/advisories/GHSA-mr7p-25v2-35wr
- Linkgithub.com/mssalvatore/CVE-2019-14751_PoC
- Packagegithub.com/nltk/nltk
- Linkgithub.com/nltk/nltk/blob/3.4.5/ChangeLog
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2019-106.yaml
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QI4IJGLZQ5S7C5LNRNROHAO2P526XE3D
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGZSSEJH7RHH3RBUEVWWYT75QU67J7SE
- Linksalvatoresecurity.com/zip-slip-in-nltk-cve-2019-14751
- Linklists.opensuse.org/opensuse-security-announce/2020-03/msg00054.html
- Linklists.opensuse.org/opensuse-security-announce/2020-04/msg00001.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.