HighGHSA-cgvx-9447-vcchCVE-2024-39705PYSEC-2024-167
ntlk unsafe deserialization vulnerability
Published 28 Jun 2024 · Updated 10 Sept 2026
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.9
- Fixed in
- 3.9
Update to the fixed version for your release line, for example:
pip install 'nltk>=3.9'Details
NLTK through 3.8.1 allows remote code execution if untrusted packages have pickled Python code, and the integrated data package download functionality is used. This affects, for example, averaged_perceptron_tagger and punkt.
Is GHSA-cgvx-9447-vcch 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-2024-39705
- Linkgithub.com/nltk/nltk/issues/2522
- Linkgithub.com/nltk/nltk/issues/3266
- Linkgithub.com/nltk/nltk/commit/441aecb7d33014bd08672232c6c8bb69c2ceaba2
- Packagegithub.com/nltk/nltk
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2024-167.yaml
- Linkwww.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.