Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
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