Home / ntlk / ntlk / CVE-2025-71408
CVE-2025-71408: is it exploited, and which versions of ntlk are affected and fixed?
CVE-2025-71408 is a code injection through eval vulnerability in ntlk. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: nltk before 3.9.3 (GitHub advisory GHSA-848c-c2cx-j7qx). Fixed in 3.9.3 (GitHub advisory GHSA-848c-c2cx-j7qx). Severity: High (8.5, CVSS 4.0, from VulnCheck).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2025-71408?
NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments
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.
From the CVE record by VulnCheck, last updated October 8, 2026, 15:21 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ntlk | ntlk | before 3.9.3 | 3.9.3 |
As the CVE record by VulnCheck states it, last updated October 8, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | nltk | < 3.9.3 | 3.9.3 | GHSA-848c-c2cx-j7qx |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 12, 2026. Summary: NLTK vulnerable to Eval Injection via collocations CLI arguments.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nltk | nltk | before 3.9.3 | application |
NVD analysis (status Analyzed), last modified October 8, 2026, 16:16 UTC.
How severe is CVE-2025-71408?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.5 | CVSS 4.0 | 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 | VulnCheck |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-71408 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, July 27, 2026)
- EPSS
- 0.20% probability of exploitation activity in the next 30 days, percentile 10.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
Where are the vendor advisories and references?
- Researcher Disclosure technical-description, exploit
- NLTK 3.9.3 Release Notes release-notes, patch
- Pull Request issue-tracking, patch
- Patch Commit patch
- https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments third-party-advisory
Who found and reported it?
- Yunus AYDIN (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- July 24, 2026
- Published
- July 24, 2026, 21:07 UTC
- CVE record updated
- October 8, 2026, 15:21 UTC by VulnCheck
- NVD
- Analyzed, last modified October 8, 2026, 16:16 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2025-71408
Is CVE-2025-71408 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.20% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of ntlk are affected by CVE-2025-71408?
nltk before 3.9.3, per the GitHub advisory GHSA-848c-c2cx-j7qx. The tables above give every range the sources list.
Which version fixes CVE-2025-71408?
3.9.3, per the GitHub advisory GHSA-848c-c2cx-j7qx. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-71408?
High (8.5, CVSS 4.0, from VulnCheck). The severity table above shows each score with its source.
Where is the official record of CVE-2025-71408?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.