CVE-2024-39705

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

Critical · published June 27, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
71.2
In the wild
Unconfirmed
What it is

🔥 Brace yourself! A simple untrusted package can trigger remote code execution in NLTK versions up to 3.8.1 – it’s like inviting a stranger into your home and handing them the keys! ⚡ Think of it as a restaurant that allows takeout orders without checking the chef's credentials. If they don’t verify who’s cooking, you might end up with a dish that could sabotage your kitchen instead of satisfying your hunger! This vulnerability could allow attackers to execute arbitrary code on your system, potentially leading to a full compromise. Imagine malicious code slipping through your defenses and wreaking havoc—erasing files or stealing sensitive data. It’s an absolute nightmare in the making!

Put simply

Think of it as a restaurant that allows takeout orders without checking the chef's credentials. If they don’t verify who’s cooking, you might end up with a dish that could sabotage your kitchen instead of satisfying your hunger! This critical flaw in NLTK arises when untrusted packages containing pickled Python code are processed, particularly affecting components like averaged_perceptron_tagger and punkt. The integration of data package downloads without proper checks is the Achilles' heel here.

What to do

This vulnerability could allow attackers to execute arbitrary code on your system, potentially leading to a full compromise. Imagine malicious code slipping through your defenses and wreaking havoc—erasing files or stealing sensitive data. It’s an absolute nightmare in the making! To mitigate this vulnerability, immediately upgrade NLTK to version 3.8.2 or later. Always ensure that you only use trusted packages and consider disabling the integrated data package download functionality if untrusted sources are involved. 🚀 You’ve got this! Patch up and secure your environment—you’re well on your way to becoming a security hero! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01346 · 71.2th percentile
Published
2024-06-27T00:00Z
EPSS history
Timeline
  • 27 JUN 00:00Z
    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
    cvelistv5