Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-39705 EUVD-2024-0118GHSA-cgvx-9447-vcchPYSEC-2024-167

ntlk unsafe deserialization vulnerability

Published Jun 27, 2024 · Updated Sep 15, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nltk 3.9.1-1 —
Debian 13 nltk 3.9.1-1 —
Debian 12 nltk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS nltk No fix yet —
Ubuntu 22.04 LTS nltk No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS nltk No fix yet —
Ubuntu Pro 18.04 LTS nltk No fix yet —
Ubuntu Pro 16.04 LTS nltk No fix yet —
Ubuntu Pro 14.04 LTS nltk No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP6 python-nltk 3.7-bp156.4.3.1 openSUSE-SU-2024:0221-1
SUSE Package Hub 15 SP5 python-nltk 3.7-bp155.3.3.1 openSUSE-SU-2024:0222-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-nltk 3.8.1-2.1 openSUSE-SU-2026:11469-1, openSUSE-SU-2024:14103-1
openSUSE Leap 15.6 python-nltk 3.7-bp156.4.3.1 openSUSE-SU-2024:0221-1
openSUSE Leap 15.5 python-nltk 3.7-bp155.3.3.1 openSUSE-SU-2024:0222-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-nltk +7 3.8.2-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.9 3.9 GHSA-cgvx-9447-vcch

Advisories 4

References