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 profile import mechanism resolves `trestle://` URIs and relative file paths by joining them with `trestle_root` and calling `.resolve()`, but performs no boundary check to ensure the resolved path stays within the trestle workspace. An attacker can craft a malicious OSCAL profile YAML with `imports[].href` containing path traversal sequences to read arbitrary files from the server filesystem. Versions 3.12.3 and 4.0.3 patch the issue.
Published: 2026-08-13
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Compliance‑trestle’s profile import concatenates trestle:// URIs and relative file paths with the trestle_root directory and then resolves the resulting path, but it does not enforce a boundary check to keep the resolution inside the trestle workspace. This allows an attacker who supplies a crafted OSCAL profile YAML to include imports[].href values containing path‑traversal sequences, resulting in reading arbitrary files from the server filesystem. The bug (CWE‑22) can expose sensitive files, configurations, or credentials, compromising confidentiality.

Affected Systems

The vulnerability applies to oscal‑compass compliance‑trestle library in versions 3.12.2 or earlier and 4.0.3 or earlier. Any installation that has not been updated to 3.12.3 or a newer release lacks the fix that validates import paths against the trestle workspace.

Risk and Exploitability

This flaw carries a CVSS score of 6.9, indicating a medium severity. No EPSS score is available and it is not listed in the CISA KEV catalog, suggesting no known exploitation yet. An attacker who can trigger the profile import—by uploading a malicious OSCAL file through the tool’s interface or API—could read any file accessible to the process. The confidentiality impact is significant, while other impacts like remote code execution are not implied.

Generated by OpenCVE AI on August 13, 2026 at 21:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade compliance‑trestel to the patched release 3.12.3 or later, which enforces boundary checks when resolving import paths.
  • In the interim, limit profile import functionality to trusted sources or disable the trestle:// URI scheme to avoid processing malicious imports.
  • Examine system logs for unexpected file read activity and verify the integrity of existing OSCAL profiles before importing.

Generated by OpenCVE AI on August 13, 2026 at 21:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mj4x-vf5c-5xg8 compliance-trestle Profile Import has an Arbitrary File Read via trestle:// URI and Relative 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 profile import mechanism resolves `trestle://` URIs and relative file paths by joining them with `trestle_root` and calling `.resolve()`, but performs no boundary check to ensure the resolved path stays within the trestle workspace. An attacker can craft a malicious OSCAL profile YAML with `imports[].href` containing path traversal sequences to read arbitrary files from the server filesystem. Versions 3.12.3 and 4.0.3 patch the issue.
Title compliance-trestle Profile Import has an Arbitrary File Read via trestle:// URI and Relative Path Traversal
Weaknesses CWE-22
References
Metrics cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T19:26:44.243Z

Reserved: 2026-05-13T07:45:21.251Z

Link: CVE-2026-45774

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-45774

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T21:15:03Z

Weaknesses
  • CWE-22

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