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
Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI
Vulnerability Description
Banks generates meaningful LLM prompts using a template language that makes sense. Prior to 2.4.2, banks uses jinja2.Environment() (unsandboxed) to render prompt templates. Applications that pass user-supplied strings as the template argument to Prompt() are vulnerable to Server-Side Template Injection (SSTI), which can lead to Remote Code Execution (RCE) on the host system. This vulnerability is fixed in 2.4.2.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
CWE-1336
Vulnerability Title
banks 安全漏洞
Vulnerability Description
banks是Massimiliano Pippi个人开发者的一个用于生成LLM提示的模板语言工具。 banks 2.4.2之前版本存在安全漏洞,该漏洞源于使用未沙箱化的jinja2.Environment()渲染提示模板,应用程序将用户提供的字符串作为Prompt()的模板参数时可能导致服务器端模板注入,进而导致远程代码执行。
CVSS Information
N/A
Vulnerability Type
N/A