Eval Injection Vulnerability in NLTK Natural Language Toolkit
CVE-2025-71408
Key Information:
Badges
What is CVE-2025-71408?
The Natural Language Toolkit (NLTK) version 3.9.3 and earlier are susceptible to an eval injection vulnerability within the nltk.collocations module. This security flaw arises when command-line arguments are directly passed to the eval() function in the main block of collocations.py, lacking proper validation or sanitization. An attacker controlling these arguments can execute arbitrary Python code, including operating system commands through the os module. This poses serious security risks, allowing unauthorized access and manipulation of the system. Users are urged to upgrade to the latest version to mitigate this vulnerability and protect their systems.
Affected Version(s)
ntlk 0
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
