Description
compliance-trestle is a tooling platform for managing compliance as code. Prior to versiions 3.12.2 and 4.0.3, the compliance-trestle library's remote fetching cache mechanism (HTTPSFetcher and SFTPFetcher) constructs the local cache file path from the URL path component without sanitizing path traversal sequences (`../`). When a remote OSCAL profile references a URL with traversal in its path, the HTTP response body is written to a location outside the intended cache directory, enabling arbitrary file write with attacker-controlled content to the filesystem. Versions 3.12.3 and 4.0.3 patch the issue.
Published: 2026-08-13
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in the way the compliance‑trestle fetching library builds its cache file path from the URL component without sanitizing path traversal characters. When a remote OSCAL profile contains a URL that includes sequences like "../", the HTTP or SFTP response body is written to an unintended location outside the cache directory. This allows an attacker who can supply a malicious OSCAL profile to cause the tool to create or overwrite arbitrary files on the local filesystem, potentially leading to code execution or privilege escalation. The weakness is defined as CWE‑73, a path traversal flaw that compromises confidentiality, integrity, and availability of the host system.

Affected Systems

The affected product is compliance‑trestle from the oscal‑compass vendor. Versions prior to 3.12.2 (for the 3.x series) and prior to 4.0.3 (for the 4.x series) are vulnerable. The patched releases are 3.12.3 and 4.0.3, which include proper sanitization of path traversal characters in the cache path.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity. The EPSS score is not available, but the absence of listing in the CISA KEV catalog suggests no known widespread exploitation yet. The likely attack vector involves an attacker providing a crafted OSCAL profile URL, which the tool will fetch and cache. If the attacker can influence the profile retrieval step, they may trigger the arbitrary file write. The exploit requires the tool to run with sufficient permissions to write to the filesystem, which is often granted in environments where compliance‑trestle is executed.

Generated by OpenCVE AI on August 13, 2026 at 20:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade compliance‑trestle to at least version 3.12.3 or 4.0.3, which sanitize path traversal sequences in cache file paths.
  • Verify that the tool no longer writes files outside the intended cache directory by attempting to fetch a test profile containing "../" in the URL path and ensuring the write is blocked.
  • Restrict the use of remote OSCAL profiles to trusted sources only, or disable remote fetching features if they are not required for your compliance processes.

Generated by OpenCVE AI on August 13, 2026 at 20:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g3vg-vx23-3858 compliance-trestle Remote Fetching Mechanism has an Arbitrary File Write via Cache Path Traversal
History

Thu, 13 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Description compliance-trestle is a tooling platform for managing compliance as code. Prior to versiions 3.12.2 and 4.0.3, the compliance-trestle library's remote fetching cache mechanism (HTTPSFetcher and SFTPFetcher) constructs the local cache file path from the URL path component without sanitizing path traversal sequences (`../`). When a remote OSCAL profile references a URL with traversal in its path, the HTTP response body is written to a location outside the intended cache directory, enabling arbitrary file write with attacker-controlled content to the filesystem. Versions 3.12.3 and 4.0.3 patch the issue.
Title compliance-trestle Remote Fetching Mechanism has an Arbitrary File Write via Cache Path Traversal
Weaknesses CWE-73
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T19:22:59.118Z

Reserved: 2026-05-13T05:51:48.666Z

Link: CVE-2026-45725

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T20:17:22.027

Modified: 2026-08-13T20:17:22.027

Link: CVE-2026-45725

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T20:45:02Z

Weaknesses
  • CWE-73

    External Control of File Name or Path