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 ar…
高危 CVSS 7.8
摘要
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 l…
中文摘要建设中,暂以英文摘要呈现(DR-003 v2)。
深度研判 · 自动通道
该漏洞尚未生成深度研判报告(DR-003 v2 AI pipeline 建设中)。
受影响产品
- :
Lint 边界警告 (1)
以下是本次研判 lint 阶段发现的非阻塞性警告(如引用 URL 未在白名单内)。这些不影响漏洞条目可用性,仅为透明度披露(参 DR-002)。
-
REF_URL_NOT_ALLOWLISTEDurl not in allowlist: https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/
数据来源
- NVD DATABASE
原始链接
- https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/ Exploit
- https://github.com/nltk/nltk/commit/66f14096d952ec8f04934f515e027534bd4eb0ac Patch
- https://github.com/nltk/nltk/pull/3465 Issue Tracking
- https://github.com/nltk/nltk/releases/tag/3.9.3 Release Notes
- https://www.vulncheck.com/advisories/nltk-eval-injection-via-collocations-py-command-line-arguments Patch
时间线
- nvd_ingest NVD