8.5

CVE-2025-71408: nltk Eval Injection

CVSS: 8.5v4.0HighAnalyzed
AliasesGHSA-848c-c2cx-j7qxPYSEC-2026-3657UBUNTU-CVE-2025-71408
Published 24-07-2026Last modified 08-10-2026

Vulnerability summary

CVE-2025-71408 is a high (CVSS 8.5) Eval Injection vulnerability in nltk. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 17.3% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
44/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.5/10
010
High · v4.0 (CVE.org)
EPSS score
0.27%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 24-07-2026
    PublishedVulnerability first disclosed.
  2. 08-10-2026
    Last modifiedVulnerability information updated.

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 lookup and executes arbitrary code including OS commands via the os module.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.27%

Chance of exploitation in the next 30 days

Percentile

17%

Versus all other CVEs

30-day change

+0.07 pp

From 0.20% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.27%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (aydinnyunus.github.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • nltkAll versions (No fix recorded) | < 3.9.3-1
Nltk1 product
Ntlk1 product
PyPI1 product
  • nltk< 3.9.3
Ubuntu1 product
  • nltkAll versions (No fix recorded)

5 vendors · 5 products

References

13 links
Show all 13 references