漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Remote Code Execution (RCE) via String Literal Injection into math-codegen
Vulnerability Description
math-codegen generates code from mathematical expressions. Prior to version 0.4.3, string literal content passed to cg.parse() is injected verbatim into a new Function() body without sanitization. This allows an attacker to execute arbitrary system commands when user-controlled input reaches the parser. Any application exposing a math evaluation endpoint where user input flows into cg.parse() is vulnerable to full RCE. This issue has been patched in version 0.4.3.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Vulnerability Title
math-codegen 代码注入漏洞
Vulnerability Description
math-codegen是Mauricio Poppe个人开发者的一个从数学表达式生成JavaScript代码的解释器。 math-codegen 0.4.3之前版本存在代码注入漏洞,该漏洞源于cg.parse()函数未对字符串字面量内容进行清理,可能导致任意系统命令执行。
CVSS Information
N/A
Vulnerability Type
N/A