NLTKGHSA-cgvx-9447-vcch
ntlk unsafe deserialization vulnerability
High7.5CVE-2024-39705 · Published Jun 28, 2024 · updated Sep 10, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| nltk PyPI | < 3.9 | 3.9 |
Details and references
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.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-300, CWE-502
- Also known as
- CVE-2024-39705, PYSEC-2024-167
- nvd.nist.gov/vuln/detail/CVE-2024-39705
- github.com/nltk/nltk/issues/2522
- github.com/nltk/nltk/issues/3266
- github.com/nltk/nltk/commit/441aecb7d33014bd08672232c6c8bb69c2ceaba2
- github.com/nltk/nltk
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2024-167.yaml
- www.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706