Read the docs
TI-2026-34145 Aliases CVE-2026-46439GHSA-gg2g-p7xc-qqmm

compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)

Priority HIGH 69CWE-1336Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1336.

Summary

compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables). The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required. This distinction is critical: the template author may only intend to render plain text (e.g., `Title: {{ ssp.metadata.title }}`), but because of the recursive parsing, the data field itself becomes executable. The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output. Versions 3.12.3 and 4.0.3 patch the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00268 18th percentileScored 2026-11-07
Fix Fixed compliance-trestle (oscal-compass): 3.12.2, 4.0.3compliance-trestle (PyPI): 3.12.2, 4.0.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
oscal-compasscompliance-trestlebefore 3.12.2; 4.0.0 to before 4.0.33.12.2, 4.0.3Patch availableCNA
—compliance-trestle (PyPI)before 3.12.23.12.2Patch availableGHSA-gg2g-p7xc-qqmm
—compliance-trestle (PyPI)4.0.0 to before 4.0.34.0.3Patch availableGHSA-gg2g-p7xc-qqmm
  • compliance-trestle Vendoroscal-compass Affected before 3.12.2; 4.0.0 to before 4.0.3 Fixed in 3.12.2, 4.0.3 Patch available CNA
  • compliance-trestle (PyPI) Vendor— Affected before 3.12.2 Fixed in 3.12.2 Patch available GHSA-gg2g-p7xc-qqmm
  • compliance-trestle (PyPI) Vendor— Affected 4.0.0 to before 4.0.3 Fixed in 4.0.3 Patch available GHSA-gg2g-p7xc-qqmm

Remediation

  • Fix · CNA compliance-trestle (oscal-compass) Fixed in 3.12.2, 4.0.3
  • Fix · GHSA-gg2g-p7xc-qqmm compliance-trestle (PyPI) Fixed in 3.12.2 Advisory →
  • Fix · GHSA-gg2g-p7xc-qqmm compliance-trestle (PyPI) Fixed in 4.0.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 2 products
  • File Integrity Operator
  • Red Hat Hardened Images

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-46439
  2. 2026-10-03 Alias added: GHSA-gg2g-p7xc-qqmm
  3. 2026-10-10 Affected versions changed · Red Hat

References

  • TI-2026-37891 Trestle URLSecurityValidator SSRF allowlist bypass via IPv4-mapped IPv6 and 0.0.0.0 CVSS 4.0HIGH 8.6
  • TI-2026-34065 compliance-trestle - jinja has an Arbitrary File Write via Path Traversal CVSS 3.1HIGH 8.4
  • TI-2026-33511 compliance-trestle Profile Import has an Arbitrary File Read via trestle:// URI and Relative Path Traversal CVSS 4.0MEDIUM 6.9
  • TI-2026-34095 compliance-trestle Vulnerable to SSRF in Remote Fetching Subsystem CVSS 3.1MEDIUM 6.7
  • TI-2026-41137 Trestle SSTI in Jinja2 include tags allows arbitrary code execution (Incomplete fix of CVE-2026-46439) CVSS 3.1HIGH 7.8
  • TI-2026-39563 Trestle has Server-Side Template Injection (SSTI) via Recursive Template Re-evaluation of Untrusted Data CVSS 3.1HIGH 7.8
See all 8 →

Sources