{"cve":"CVE-2026-46439","nvd":{"published":"2026-08-14T17:18:14.853","modified":"2026-09-18T20:09:01.757","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-94","CWE-1336"],"references":["https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6","https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525","https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-gg2g-p7xc-qqmm","https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2425.yaml","https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-gg2g-p7xc-qqmm"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:48:17.459049833+00:00"},"epss":{"cve":"CVE-2026-46439","score":0.00268,"percentile":0.1895,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gg2g-p7xc-qqmm","url":"https://osv.dev/vulnerability/GHSA-gg2g-p7xc-qqmm","summary":"compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)","modified":"2026-07-13T16:42:32.032255100Z","packages":[{"ecosystem":"PyPI","name":"compliance-trestle","purl":"pkg:pypi/compliance-trestle","ranges":["<3.12.2"],"fixed":["3.12.2"]},{"ecosystem":"PyPI","name":"compliance-trestle","purl":"pkg:pypi/compliance-trestle","ranges":[">=4.0.0 <4.0.3"],"fixed":["4.0.3"]}]},{"id":"PYSEC-2026-2425","url":"https://osv.dev/vulnerability/PYSEC-2026-2425","summary":"compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)","modified":"2026-07-13T16:32:36.298649353Z","packages":[{"ecosystem":"PyPI","name":"compliance-trestle","purl":"pkg:pypi/compliance-trestle","ranges":["<3.12.2",">=4.0.0 <4.0.3"],"fixed":["3.12.2","4.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}