CVE-2024-39705
HIGH7.5EPSS 10.8%ntlk unsafe deserialization vulnerability
Published: 6/28/2024Modified: 4/28/2026
Description
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.
Affected packages (3)
- Debian/nltkfrom 0
- PyPI/nltkfrom 0, < 3.9
- PyPI/nltkfrom 0, < 3.9
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-39705
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-39705
- PATCHhttps://github.com/nltk/nltk
- WEBhttps://github.com/nltk/nltk/commit/441aecb7d33014bd08672232c6c8bb69c2ceaba2
- WEBhttps://github.com/nltk/nltk/issues/2522
- WEBhttps://github.com/nltk/nltk/issues/3266
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2024-167.yaml
- WEBhttps://www.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706