CVE-2024-39705
CRITICAL 9.8CVSS 3.1ntlk unsafe deserialization vulnerability
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.
- Published
- 27 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-300CWE-502
- Also known as
- GHSA-cgvx-9447-vcchPYSEC-2024-167
- Sources
- NVDJSONOSV GHSA-cgvx-9447-vcchJSONOSV PYSEC-2024-167JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | nltk | < 3.9 | 3.9 |
References
- https://github.com/nltk/nltk/issues/2522 · WEB, REPORT
- https://github.com/nltk/nltk/issues/3266 · WEB, REPORT
- https://www.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-39705 · ADVISORY
- https://github.com/nltk/nltk/commit/441aecb7d33014bd08672232c6c8bb69c2ceaba2 · WEB
- https://github.com/nltk/nltk · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2024-167.yaml · WEB
- https://github.com/advisories/GHSA-cgvx-9447-vcch · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Jun 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Jun 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Jun 2024)