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: < 1% Very Low
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‑22 and CWE‑73, path traversal flaws that compromise 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 high severity. The EPSS score of 0.00268 indicates a very low probability of exploitation. 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 15, 2026 at 01:51 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.
  • Disable or restrict remote OSCAL profile fetching to trusted sources only, or turn off the remote fetching feature if it is not required for your compliance processes.
  • Run compliance‑trestle under the least privilege necessary to limit the impact of any potential file writes.

Generated by OpenCVE AI on August 15, 2026 at 01:51 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

Sat, 15 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important


Fri, 14 Aug 2026 10:00:00 +0000

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

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

Oscal-compass Compliance-trestle
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T18:18:06.770Z

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-17T19:16:30.850

Link: CVE-2026-45725

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-13T19:22:59Z

Links: CVE-2026-45725 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T02:00:04Z

Weaknesses
  • CWE-22

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

  • CWE-73

    External Control of File Name or Path