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

VendorProductVersions
ntlkntlk0
PyPInltk0
ntlkntlk0

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
Open in Interactive Console →
$ Console Community · 50/day Open console ›