Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-39705
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 02:09 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-39705
Complete source record
{
"id": "f3c9eedca12de3ae9c56e7a742d7c16a050001d6a279beaaecfe0ddab6db517c",
"url": "https://osv.dev/vulnerability/CVE-2024-39705",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2024-39705",
"summary": "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.",
"evidence": "osv:CVE-2024-39705",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2024-39705",
"aliases": [
"CVE-2024-39705",
"GHSA-cgvx-9447-vcch",
"PYSEC-2024-167"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nltk/nltk",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "63a63b1a7793aceceb1efc23bc1fd87e7095f9d5"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "3.8.1"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"3.8.1",
"3.8",
"3.7",
"3.6.7",
"3.6.6",
"3.6.5",
"3.6.2",
"3.6.1",
"3.6",
"3.5",
"3.5b1",
"3.4.4",
"3.4.3",
"3.4.1",
"3.4",
"3.3",
"3.2.5",
"3.2.4",
"3.2.3",
"3.2.2",
"3.2.1",
"3.2",
"3.1",
"3.0.5",
"3.0.4",
"3.0.3",
"3.0.2",
"3.0.0b1",
"3.0a4",
"2.0.1rc4",
"2.0.1rc3",
"2.0.1rc2",
"2.0.1rc1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39705.json"
}
}
],
"modified": "2026-10-28T02:30:45.985532361Z",
"provider": "osv",
"references": [
"https://www.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39705.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-39705",
"https://github.com/nltk/nltk/issues/2522",
"https://github.com/nltk/nltk/issues/3266"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39705.json"
}
},
"related_cves": [
{
"value": "CVE-2024-39705",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514155,
"published_at": "2024-06-27T00:00:00+00:00"
}