提交 #853188: GitHub Dify 1.14.2 Injection信息

标题GitHub Dify 1.14.2 Injection
描述Dify's Jinja2 code executor uses the unrestricted jinja2.Template() constructor instead of jinja2.SandboxedEnvironment(). This allows attackers to escape the template sandbox and achieve arbitrary code execution by abusing Python's object introspection capabilities (__class__, __mro__, __subclasses__, etc.). The same codebase correctly uses SandboxedEnvironment in other places (e.g. email rendering), indicating this is an inconsistency in security controls rather than a lack of awareness.
来源⚠️ https://github.com/CVE-Hunter-Leo/CVE/issues/14
用户
 CW.Wong (UID 88449)
提交2026-06-09 17時58分 (2 月前)
管理2026-08-03 11時41分 (2 months later)
状态已接受
VulDB条目385555 [langgenius dify 直到 1.14.2 Jinja2 jinja2_transformer.py jinja2.Template 权限提升]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!