Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-54757— Trestle has Server-Side Template Injection (SSTI) via Recursive Template Re-evaluation of Untrusted Data

Quick assessment

Affected
oscal-compass compliance-trestle
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Compliance-trestle(Trestle)是一个用于管理 OSCAL 合规文档的 Python SDK 和命令行工具。在 3.12.4 之前的版本以及 4.0.0 至 4.0.3 版本中,Trestle 存在服务器端模板注入漏洞,可能导致远程代码执行。该漏洞源于 MDCleanInclude 和 MDSectionInclude 这两个 Jinja2 标签使用非沙箱化的 jinja2.Environment,对不受信任的 Markdown 内容重新解析并作为模板源代码处理。攻击者若能够控制 Trestl

CVSS 7.8 · High EPSS 0.25% · P16

Affected Version Matrix 2

VendorProduct Version RangeStatus
oscal-compass compliance-trestle < 3.12.4 affected
>= 4.0.0, < 4.1.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54757

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

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
Trestle has Server-Side Template Injection (SSTI) via Recursive Template Re-evaluation of Untrusted Data
Source: CVE Program / CVE List V5
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
oscal-compass compliance-trestle < 3.12.4 -

II. Public POCs for CVE-2026-54757

# POC Description Source Link Shenlong Link
AI-Generated POC Verified env Premium
Qwen3.6-35B-A3B · 7984 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-54757

登录查看更多情报信息。

Patches & Fixes for CVE-2026-54757 (1)

Vendor Advisories for CVE-2026-54757 (1)

Same Patch Batch · oscal-compass · 2026-08-25 · 4 CVEs total

CVE-2026-52776 8.6 HIGH Trestle URLSecurityValidator SSRF allowlist bypass via IPv4-mapped IPv6 and 0.0.0.0
CVE-2026-57170 7.8 HIGH Trestle SSTI in Jinja2 include tags allows arbitrary code execution (Incomplete fix of CVE
CVE-2026-57171 7.7 HIGH Trestle is vulnerable to arbitrary file write via path traversal in author generate comman

IV. Related Vulnerabilities

V. Comments for CVE-2026-54757

No comments yet


Leave a comment