# CVE-2026-46345: compliance-trestle - jinja has an Arbitrary File Write via Path Traversal

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/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.20%, higher than 6% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-28T17:44:03.000Z
- Modified: 2026-10-23T16:10:00.313Z
- Also known as: GHSA-4q5v-7g7x-j79w, PYSEC-2026-2423
- Related: CVE-2026-57171
- Weaknesses: CWE-22, CWE-36, CWE-73
- 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. Prior to versions 3.12.2 and 4.0.3, the `-o/--output` argument in `trestle author jinja` allows writing files outside the intended workspace. The application does not properly validate, `../`,  `..\`, or absolute paths. This allows arbitrary file write to attacker-controlled locations. Versions 3.12.3 and 4.0.3 patch the issue.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w> (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-2423.yaml> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46345> (advisory)
- <https://github.com/oscal-compass/compliance-trestle> (package)
- <https://pypi.org/project/compliance-trestle> (package)
- <https://github.com/advisories/GHSA-4q5v-7g7x-j79w> (advisory)

## Sources

- CVE List: [CVE-2026-46345](https://www.cve.org/CVERecord?id=CVE-2026-46345), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-4q5v-7g7x-j79w](https://github.com/advisories/GHSA-4q5v-7g7x-j79w), CC-BY-4.0, modified 2026-08-27
- NVD: [CVE-2026-46345](https://nvd.nist.gov/vuln/detail/CVE-2026-46345), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-2423](https://osv.dev/vulnerability/PYSEC-2026-2423), CC-BY-4.0, modified 2026-07-13

---

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