漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Trestle has Server-Side Template Injection (SSTI) via Recursive Template Re-evaluation of Untrusted Data
Vulnerability Description
Compliance-trestle (Trestle) is a Python SDK and command-line tool for managing OSCAL compliance documents. In versions before 3.12.4 and versions 4.0.0 through 4.0.3, Trestle is vulnerable to server-side template injection that can lead to remote code execution. This occurs because the MDCleanInclude and MDSectionInclude Jinja2 tags re-parse untrusted Markdown content as template source code using a non-sandboxed jinja2.Environment. An attacker who controls content that Trestle renders, such as a crafted workspace Markdown file, a third-party SSP document, or a YAML lookup-table value, can inject a Jinja2 expression that traverses Python object internals to execute arbitrary operating system commands in the context of the Trestle process. This issue is fixed in versions 3.12.4 and 4.1.0.
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Vulnerability Title
oscal-compass compliance-trestle 代码注入漏洞
Vulnerability Description
oscal-compass compliance-trestle是oscal-compass组织的一个合规管理工具。 oscal-compass compliance-trestle 3.12.4之前版本和4.0.0至4.0.3版本存在代码注入漏洞,该漏洞源于MDCleanInclude和MDSectionInclude Jinja2标签将不可信的Markdown内容重新解析为模板源代码,且使用非沙箱的jinja2.Environment,可能导致服务器端模板注入,从而造成远程代码执行。
CVSS Information
N/A
Vulnerability Type
N/A