# CVE-2026-46439: compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-28T19:01:38.000Z
- Modified: 2026-09-18T20:09:01.757Z
- Also known as: GHSA-gg2g-p7xc-qqmm, PYSEC-2026-2425
- Weaknesses: CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- oscal-compass compliance-trestle: < 3.12.2; >= 4.0.0, < 4.0.3
- compliance-trestle (PyPI): before 3.12.2; from 4.0.0 before 4.0.3

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-gg2g-p7xc-qqmm> (exploit, web)
- <https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6> (web)
- <https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2425.yaml>
- <https://github.com/oscal-compass/compliance-trestle> (package)
- <https://pypi.org/project/compliance-trestle> (package)
- <https://github.com/advisories/GHSA-gg2g-p7xc-qqmm> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46439> (advisory)

## Sources

- CVE List: [CVE-2026-46439](https://www.cve.org/CVERecord?id=CVE-2026-46439), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-gg2g-p7xc-qqmm](https://github.com/advisories/GHSA-gg2g-p7xc-qqmm), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-46439](https://nvd.nist.gov/vuln/detail/CVE-2026-46439), Public domain, modified 2026-09-18
- PyPA Advisory Database: [PYSEC-2026-2425](https://osv.dev/vulnerability/PYSEC-2026-2425), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-46439 · Whole record: https://cve.day/CVE-2026-46439.json · Rebuilt by cve.day 2026-11-25T22:59:32.924Z
