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.
CVE-2025-71408
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-07-25. a secondary CVSS source baseline 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EG Risk
- 51(Track*)EG Risk 51/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 0%
- EPSS %ILE
- 10%
- KEV
- Not listed
Published
July 24, 2026
Last Modified
August 10, 2026
Advisory Details (4)
Auto-updated Jul 24, 2026NLTK < 3.9.2 Eval Injection via collocations.py Command-Line Arguments | Advisories | VulnCheck
https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-argumentscommit 66f14096d952 (nltk/nltk)
Patch available: nltk/nltk v3.10.0-rc1 (contains commit 66f14096d952)
https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0acreplace eval() with getattr() in collocations CLI
Patch available: nltk/nltk v3.10.0-rc1 (PR #3465 merged 2025-12-03)
https://github.com/nltk/nltk/pull/3465NLTK Command Injection via eval() in collocations.py
https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/Vendor Advisories for CVE-2025-71408(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(5 across 5 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| nltk | 3.10.0-1 ... 3.9.3-1 (12 versions) | — | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| nltk | 3.10.0-1 ... 3.9.3-1 (9 versions) | — | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| nltk | 3.10.0-1 ... 3.9.3-1 (6 versions) | — | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| nltk | 3.9.1-2, 3.9.2-1 | 3.9.3-1 | — |
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| nltk | 0.8 ... 3.9b1 (63 versions) | 3.9.3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 48× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 134 total refreshes for this CVE.
- 2026-09-15 09:35 UTCEG score recompute
- 2026-09-15 03:10 UTCEPSS rescore
- 2026-09-13 17:06 UTCEG score recompute
- 2026-09-13 16:46 UTCEPSS rescore
- 2026-09-12 17:03 UTCEG score recompute
- 2026-09-12 15:00 UTCEPSS rescore
- 2026-09-11 16:36 UTCEG score recompute
- 2026-09-11 14:52 UTCEPSS rescore
- 2026-09-11 09:36 UTCEPSS rescore
- 2026-09-10 13:34 UTCEG score recompute
- 2026-09-10 09:34 UTCEPSS rescore
- 2026-09-09 08:43 UTCEG score recompute
- 2026-09-08 22:00 UTCEPSS rescore
- 2026-09-07 21:23 UTCEG score recompute
- 2026-09-07 16:00 UTCEPSS rescore
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-05 19:22 UTCEG score recompute
- 2026-09-05 06:52 UTCEG score recompute
- 2026-09-04 12:48 UTCEG score recompute
- 2026-09-04 05:06 UTCEPSS rescore
- 2026-09-02 14:11 UTCEPSS rescore
- 2026-09-01 23:15 UTCEG score recompute
- 2026-09-01 13:53 UTCEPSS rescore
- 2026-08-31 00:15 UTCEG score recompute
- 2026-08-30 12:15 UTCEG score recompute
Show 75 moreShow fewer
- 2026-08-30 01:21 UTCEPSS rescore
- 2026-08-30 00:15 UTCEG score recompute
- 2026-08-28 21:40 UTCEPSS rescore
- 2026-08-27 21:59 UTCEG score recompute
- 2026-08-27 14:24 UTCEPSS rescore
- 2026-08-26 21:15 UTCEG score recompute
- 2026-08-26 14:45 UTCEPSS rescore
- 2026-08-24 20:45 UTCEG score recompute
- 2026-08-24 14:16 UTCEPSS rescore
- 2026-08-24 08:45 UTCEG score recompute
- 2026-08-23 08:17 UTCEG score recompute
- 2026-08-23 00:18 UTCEPSS rescore
- 2026-08-22 08:17 UTCEG score recompute
- 2026-08-21 23:48 UTCEPSS rescore
- 2026-08-21 08:17 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-19 20:17 UTCEG score recompute
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-18 18:52 UTCEG score recompute
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-18 01:42 UTCEG score recompute
- 2026-08-17 13:46 UTCEPSS rescore
- 2026-08-17 01:42 UTCEG score recompute
- 2026-08-16 14:55 UTCEPSS rescore
- 2026-08-16 13:42 UTCEG score recompute
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 01:41 UTCEG score recompute
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 01:41 UTCEG score recompute
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 01:41 UTCEG score recompute
- 2026-08-12 13:50 UTCEPSS rescore
- 2026-08-12 13:41 UTCGHSA enrichment
- 2026-08-12 01:41 UTCEG score recompute
- 2026-08-12 01:41 UTCGHSA enrichment
- 2026-08-11 13:42 UTCEPSS rescore
- 2026-08-11 13:41 UTCGHSA enrichment
- 2026-08-11 01:41 UTCEG score recompute
- 2026-08-11 01:41 UTCGHSA enrichment
- 2026-08-10 23:59 UTCEPSS rescore
- 2026-08-10 13:41 UTCGHSA enrichment
- 2026-08-10 08:19 UTCGHSA enrichment
- 2026-08-09 20:20 UTCEG score recompute
- 2026-08-09 20:20 UTCGHSA enrichment
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-09 08:20 UTCGHSA enrichment
- 2026-08-08 20:20 UTCEG score recompute
- 2026-08-08 20:20 UTCGHSA enrichment
- 2026-08-08 16:36 UTCEPSS rescore
- 2026-08-08 08:19 UTCGHSA enrichment
- 2026-08-07 20:19 UTCEG score recompute
- 2026-08-07 20:19 UTCGHSA enrichment
- 2026-08-07 16:27 UTCEPSS rescore
- 2026-08-07 08:19 UTCGHSA enrichment
- 2026-08-06 20:19 UTCEG score recompute
- 2026-08-06 20:19 UTCGHSA enrichment
- 2026-08-06 13:46 UTCEPSS rescore
- 2026-08-06 08:19 UTCGHSA enrichment
- 2026-08-05 20:19 UTCEG score recompute
- 2026-08-05 20:19 UTCGHSA enrichment
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-05 08:19 UTCGHSA enrichment
- 2026-08-04 20:19 UTCEG score recompute
- 2026-08-04 20:18 UTCGHSA enrichment
- 2026-08-04 10:37 UTCEPSS rescore
- 2026-08-04 08:17 UTCGHSA enrichment
- 2026-08-03 20:17 UTCEG score recompute
- 2026-08-03 20:17 UTCGHSA enrichment
- 2026-08-03 10:35 UTCEPSS rescore
- 2026-08-03 08:17 UTCGHSA enrichment
- 2026-08-02 20:16 UTCGHSA enrichment
- 2026-08-02 08:16 UTCEG score recompute
- 2026-08-02 08:16 UTCGHSA enrichment
- 2026-08-02 02:26 UTCEPSS rescore
- 2026-08-01 20:15 UTCGHSA enrichment
Frequently asked(5)
What is CVE-2025-71408?
When was CVE-2025-71408 disclosed?
Is CVE-2025-71408 actively exploited?
What is the CVSS score of CVE-2025-71408?
How do I remediate CVE-2025-71408?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-71408
Is Your Infrastructure Affected by CVE-2025-71408?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.