漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
NLTK < 3.9.3 Eval Injection via collocations.py Command-Line Arguments
Vulnerability 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 Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
动态执行代码中指令转义处理不恰当(Eval注入)
Vulnerability Title
NLTK 代码注入漏洞
Vulnerability Description
ntlk ntlk是ntlk组织的一系列服务器设备和网络产品。 NLTK 3.9.3之前版本存在代码注入漏洞,该漏洞源于nltk.collocations模块中的eval注入问题,当collocations.py直接调用时,__main__块将命令行参数直接传递给eval(),没有经过白名单验证或清理,导致攻击者可通过控制命令行参数来提供Python表达式,逃逸属性查找并执行任意代码,包括OS命令。
CVSS Information
N/A
Vulnerability Type
N/A