HIGH

CVE-2025-71408

CVSS v3

7.8

HIGH

EPSS Score

0.2%

exploit probability

CISA KEV

No

known exploited

Exploitation

SSVC status

Description

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 lo

Technical details

CVSS v3 Vector
3.1
Published
7/24/2026
Last Modified
7/24/2026

Frequently asked questions

What is CVE-2025-71408?

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 lo

Is CVE-2025-71408 actively exploited?

Active exploitation of CVE-2025-71408 has not been confirmed. The EPSS score is 0.2%, indicating the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-71408?

CVE-2025-71408 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string 3.1.

Is CVE-2025-71408 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.