Remote Code Execution (RCE) Affecting nltk package, versions [0,3.8.2)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-NLTK-7411380
- published 28 Jun 2024
- disclosed 27 Jun 2024
- credit Daniel Roschka
Introduced: 27 Jun 2024
CVE-2024-39705 Open this link in a new tabHow to fix?
Upgrade nltk
to version 3.8.2 or higher.
Overview
nltk is a Natural Language Toolkit (NLTK) is a Python package for natural language processing.
Affected versions of this package are vulnerable to Remote Code Execution (RCE) through the integrated data package download functionality. An attacker with control over the NLTK data index can execute arbitrary code by supplying pickled Python code within untrusted packages and trick a user into loading the malicious pickle.
Some packages found to be vulnerable if compromised are averaged_perceptron_tagger
, punkt
, maxent_ne_chunker
, help/tagsets
, and maxent_treebank_pos_tagger
.