VDB
CVE-2025-71408
CVE-2025-71408
PUBLISHED
CVSS 8.5 HIGH
Reported by VulnCheck · Published July 24, 2026
NLTK (Natural Language Toolkit) before version 3.9.3 contains an eval injection vulnerability in the nltk.collocations module that allows an attacker who controls command-line arguments to execute arbitrary Python code. When collocations.py is invoked directly, the __main__ block passes command-line arguments directly to eval() as suffixes of BigramAssocMeasures without allowlist validation or sanitization, enabling an attacker to supply a Python expression that escapes the intended attribute lookup and executes arbitrary code including OS commands via the os module.
Risk Scores
CVSS 4.0
8.5
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| ntlk | ntlk | 0 |
| PyPI | nltk | 0 |
| ntlk | ntlk | 0 |
Timeline
- Jul 24, 2026 CVE Published
- Jul 25, 2026 EPSS Score
- Jul 25, 2026 Coalition ESS Score
- Jul 27, 2026 Security Advisory
- Aug 24, 2026 EPSS Score
- Sep 6, 2026 EPSS Score
- Sep 15, 2026 EPSS Score
- Sep 18, 2026 EPSS Score
- Sep 24, 2026 EPSS Score
- Sep 26, 2026 EPSS Score
- Sep 30, 2026 EPSS Score
- Oct 3, 2026 EPSS Score
References
- Researcher Disclosure technical-descriptionexploit
- NLTK 3.9.3 Release Notes release-notespatch
- Pull Request issue-trackingpatch
- Patch Commit patch
- third-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-71408 advisory
- https://github.com/advisories/GHSA-848c-c2cx-j7qx advisory
- https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval url
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3657.yaml advisory