{"id":"CVE-2026-46345","published":"2026-08-17T17:54:16Z","modified":"2026-08-17T18:03:44Z","title":"compliance-trestle - jinja has an Arbitrary File Write via Path Traversal","vendor":"oscal-compass","product":"compliance-trestle","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00204,"percentile":0.10592,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-36","name":"Absolute Path Traversal"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6","tags":["x_refsource_MISC"]},{"url":"https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2423.yaml","tags":["x_refsource_MISC"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":2.12},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"oscal-compass","affectedVersions":[{"vendor":"oscal-compass","product":"compliance-trestle","versions":[">= 4.0.0, < 4.0.3","< 3.12.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-17T18:03:21.229026Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"compliance-trestle","vulnerableRanges":[">=4.0.0, <4.0.3","<3.12.2"],"patched":["4.0.3","3.12.2"],"from":["GHSA-4q5v-7g7x-j79w","PYSEC-2026-2423"],"provenance":"source"}],"summary":{"text":"compliance-trestle, a tooling platform for managing compliance as code, has a path traversal flaw in the -o/--output argument of trestle author jinja, which fails to validate ../, ..\\, or absolute paths. An attacker with local access and no privileges, requiring no user interaction, can write files to arbitrary attacker-chosen locations outside the intended workspace.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:45Z"},"euvd":{"id":"EUVD-2026-60317","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-oscal-compass-compliance-trestle-cve-2026-46439","children":[{"from":"CVE-2026-46345","to":"CVE-2026-57171","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-4q5v-7g7x-j79w","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-r4vp-3vw6-r2x5","via":"reference","url":"https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2026-4030","via":"reference","url":"https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w"},{"kind":"same-code","provenance":"machine","files":["trestle/core/commands/author/jinja.py"],"commits":["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/commit/37ed44f5f2e074202c8eb7c2f203c05d19461cdc","https://github.com/oscal-compass/compliance-trestle/commit/5335ff873a2a68eb7de43df029bea09cadff22fd"],"basis":"shared function","functions":["jinja_multiple_md"]}]},{"from":"CVE-2026-46345","to":"CVE-2026-52776","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["trestle/core/commands/author/jinja.py"],"commits":["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/commit/5335ff873a2a68eb7de43df029bea09cadff22fd"],"basis":"shared function","functions":["jinja_multiple_md"]}]},{"from":"CVE-2026-46345","to":"CVE-2026-54757","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["trestle/core/commands/author/jinja.py"],"commits":["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/commit/5335ff873a2a68eb7de43df029bea09cadff22fd"],"basis":"shared function","functions":["jinja_multiple_md"]}]},{"from":"CVE-2026-46345","to":"CVE-2026-57170","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["trestle/core/commands/author/jinja.py"],"commits":["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/commit/5335ff873a2a68eb7de43df029bea09cadff22fd"],"basis":"shared function","functions":["jinja_multiple_md"]}]}]}}