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.
https://www.vicarius.io/vsociety/posts/rce-in-python-nltk-cve-2024-39705-39706