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.
Published: 2026-08-17
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw in the Jinja templating command of compliance-trestle allows an attacker to write any file outside the intended workspace. The application accepts relative components such as "../", "..\\", or even absolute paths without validation, enabling arbitrary file overwrite. This vulnerability is categorized as CWE-22, CWE-36, and CWE-73 and carries a CVSS score of 8.4, indicating high severity. The ability to write to arbitrary locations can compromise system integrity, allowing attackers to inject malicious files, alter configuration, or place backdoors.

Affected Systems

The flaw affects the compliance-trestle tool released by oscal‑compass. Versions older than 3.12.2 and 4.0.3 are vulnerable; the issue was patched in 3.12.3 and 4.0.3. All deployments using the affected command line interface are impacted.

Risk and Exploitability

The CVSS score of 8.4 denotes significant risk, yet the EPSS score is not reported and the vulnerability is not listed in the CISA KEV catalog, indicating no confirmed widespread exploitation. The exploit is likely achievable by any user who can run trestle with a crafted output path. Based on the description, it is inferred that if the tool operates with elevated privileges, the arbitrary file write could lead to privilege escalation.

Generated by OpenCVE AI on August 17, 2026 at 19:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade compliance-trestle to version 3.12.3 or later 4.0.3 where the path validation has been corrected
  • If an upgrade is not immediately feasible, run trestle as a non-privileged user and explicitly limit the output directory to a safe, read‑only workspace
  • Enforce strict file system permissions on the workspace and any target directories to prevent unauthorized writes

Generated by OpenCVE AI on August 17, 2026 at 19:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-4q5v-7g7x-j79w compliance-trestle - jinja has an Arbitrary File Write via Path Traversal
History

Mon, 17 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Oscal-compass
Oscal-compass compliance-trestle
Vendors & Products Oscal-compass
Oscal-compass compliance-trestle

Mon, 17 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title compliance-trestle - jinja has an Arbitrary File Write via Path Traversal
Weaknesses CWE-22
CWE-36
CWE-73
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Oscal-compass Compliance-trestle
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T18:03:44.422Z

Reserved: 2026-05-13T18:37:30.990Z

Link: CVE-2026-46345

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T18:16:38.393

Modified: 2026-08-17T18:16:38.393

Link: CVE-2026-46345

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T20:00:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-36

    Absolute Path Traversal

  • CWE-73

    External Control of File Name or Path