> CVE-2025-71408 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-07-24 22:16
MODIFIED
2026-07-24 22:16
CVSS_SCORE V3
8.5
EPSS (Prob. Exploit)
0.27%
Top 81.5%
DATA SOURCES:
NVD 🔗 2026-07-24 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-01 GITHUB 🔗 2026-10-29 OSV 🔗 2026-11-02

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-95

> CWE DETAILED DESCRIPTIONS

CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code - The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

> RED HAT SECURITY ADVISORIES

Red Hat Security Advisory: RHOAI 3.3.7 - Red Hat OpenShift AI
Updated images are now available for Red Hat OpenShift AI.

> GITHUB SECURITY ADVISORY

GHSA-848c-c2cx-j7qx HIGH

NLTK vulnerable to Eval Injection via collocations CLI arguments

AFFECTED PACKAGES:
PIP / nltk
< 3.9.3
Fixed in: 3.9.3

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments

AFFECTED PACKAGES:
Unknown / Unknown
38 versions affected
ALIASES:
GHSA-848c-c2cx-j7qx, PYSEC-2026-3657

> HISTORIQUE DES MODIFICATIONS

Première apparition
24/07/2026 22:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') - The product receives input from an upstream component, but it does not neutralize or incorrectly neutra...
Nouvelle valeur:
CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code - The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax b...
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') - The product receives input from an upstream component, but it does not neutralize or incorrectly neutra...
Total des modifications: 2 Dernière mise à jour: 4 days ago

> REFERENCES

https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eva...
https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac
https://github.com/nltk/nltk/pull/3465
https://github.com/nltk/nltk/releases/tag/3.9.3
https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-com...
« BACK_TO_HOME