{"id":"CVE-2024-39705","aliases":["CVE-2024-39705","GHSA-cgvx-9447-vcch","PYSEC-2024-167"],"related":[],"kind":"vulnerability","state":"published","title":"ntlk unsafe deserialization vulnerability","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"NLTK hasta 3.8.1 permite la ejecución remota de código si los paquetes que no son de confianza tienen código Python encurtido y se utiliza la funcionalidad de descarga de paquetes de datos integrada. Esto afecta, por ejemplo, a Averaged_perceptron_tagger y punkt.","source":"nvd"}],"published":"2024-06-27T00:00:00.000Z","modified":"2026-09-10T03:50:15.193Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-300","CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"3.8.1","status":"affected"}],"vendor":"nltk","product":"nltk","cpe":"cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.9"}],"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.9"}],"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","source":"pysec"}],"references":[{"url":"https://github.com/nltk/nltk/issues/3266","tags":["report","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nltk/nltk/issues/2522","tags":["report","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39705","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/commit/441aecb7d33014bd08672232c6c8bb69c2ceaba2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2024-167.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-cgvx-9447-vcch","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-06-28T14:53:05.439Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39705","url":"https://www.cve.org/CVERecord?id=CVE-2024-39705","licence":"CVE Terms of Use","modified":"2024-09-15T19:27:36.034Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cgvx-9447-vcch","url":"https://github.com/advisories/GHSA-cgvx-9447-vcch","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.193Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39705","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39705","licence":"Public domain","modified":"2026-06-17T07:42:30.657Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-167","url":"https://osv.dev/vulnerability/PYSEC-2024-167","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:23.621Z"}],"updatedAt":"2026-11-25T22:58:42.304Z","epss":{"score":0.01346,"percentile":0.72235,"date":"2026-12-01T12:00:22.000Z"}}