{"id":"CVE-2026-46345","title":"compliance-trestle is a tooling platform for managing compliance as code","summary":"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 …","severity":"high","cvss":8.4,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-22","CWE-36","CWE-73"],"vendor":"compliance-trestle","product":"compliance-trestle","affected":["compliance-trestle >= 4.0.0, < 4.0.3","compliance-trestle < 3.12.2"],"patched":["compliance-trestle 4.0.3","compliance-trestle 3.12.2"],"published":"2026-08-17","updated":"2026-09-18","sourceUpdated":"2026-09-18T20:09:01.757","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-46345","references":[{"url":"https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6","label":"security-advisories@github.com"},{"url":"https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525","label":"security-advisories@github.com"},{"url":"https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w","label":"security-advisories@github.com"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2423.yaml","label":"security-advisories@github.com"},{"url":"https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"},{"url":"https://github.com/oscal-compass/compliance-trestle"}],"tags":["nvd","osv","pip"],"epss":0.00232,"epssPercentile":0.14297,"aliases":["GHSA-4q5v-7g7x-j79w","PYSEC-2026-2423"],"ecosystem":"pip","ingestedAt":"2026-07-13T18:57:52.725Z","slug":"CVE-2026-46345","body":"## Overview\n\ncompliance-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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-46345)\n\nAffected packages:\n\n- `compliance-trestle >= 4.0.0, < 4.0.3`\n- `compliance-trestle < 3.12.2`\n\nPatched in:\n\n- `compliance-trestle 4.0.3`\n- `compliance-trestle 3.12.2`\n\nSource: https://osv.dev/vulnerability/GHSA-4q5v-7g7x-j79w","depth":"twilight","depthScore":46,"depthScoreParts":{"impact":46.2,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}