CVE-2026-57171
Description
A flaw was found in Compliance-trestle (Trestle). The catalog-generate, profile-generate, and ssp-generate author commands are vulnerable to path traversal. A remote attacker can exploit this by providing a specially crafted output path, allowing them to write arbitrary files outside the intended Trestle workspace. This could lead to the destruction of arbitrary directory trees and potentially indirect code execution if --force-overwrite is used.
Statement
An IMPORTANT severity flaw was found in Compliance-trestle (Trestle), an upstream Python SDK and command-line tool for managing OSCAL compliance documents. The catalog-generate, profile-generate, and ssp-generate author commands join the user-supplied -o/--output argument onto the Trestle workspace root without path-traversal validation, so an output value containing an absolute path or traversal sequences escapes the workspace and writes generated Markdown files to an attacker-chosen location as the invoking process owner. The security boundary is crossed when a trusted CI job, automation pipeline, shared service, or wrapper derives the output argument from repository-controlled, tenant-controlled, or otherwise untrusted data while expecting the output to remain inside the workspace; the attacker needs no local shell access, only influence over the data mapped into the output argument. When --force-overwrite is used, the selected output directory is recursively deleted before generation, extending the impact to destruction of an attacker-chosen directory tree and to possible indirect code execution by overwriting files a pipeline later runs. Red Hat rated this flaw IMPORTANT with a CVSS 3.1 base score of 7.7 (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H), a conservative variant of the upstream advisory's 8.4 score that reflects the demonstrated write/overwrite primitive rather than information disclosure. The Red Hat products evaluated for this flaw (the openshift-compliance-content-rhel8 container image and the scap-security-guide package) were assessed by the responsible product teams as not affected because the vulnerable compliance-trestle component is not present in the shipped artifacts, so no Red Hat fix is required.
Mitigation
Red Hat products referencing this component were assessed as not affected because the vulnerable compliance-trestle component is not present in the shipped artifacts, so no Red Hat mitigation is required. Direct users of the upstream compliance-trestle package can mitigate the issue by ensuring the -o/--output argument passed to the trestle author catalog-generate, profile-generate, and ssp-generate commands is never derived from untrusted (for example repository- or tenant-controlled) data and always resolves to a fixed, validated directory inside the Trestle workspace, and by avoiding the --force-overwrite option when the output path is not fully trusted. Upgrading to a fixed upstream release (3.12.4 or 4.1.0) resolves the issue.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.7 | N/A | 7.7 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | None |
| Integrity Impact | High | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.