Live threats

All CVEs / nltk

CVE-2024-39705nltk

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.5%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Jun 27, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for nltk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI nltk < 3.9 3.9 pip install "nltk>=3.9"
PyPI nltk < 3.9 3.9 pip install "nltk>=3.9"

Per OSV / GitHub Advisories (GHSA-cgvx-9447-vcch, PYSEC-2024-167). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.