CVSS 3.1
7.7 highCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HHigh (7.7) in oscal-compass compliance-trestle. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in compliance-trestle 3.12.4, 4.1.0.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:Hcompliance-trestle (PyPI): fixed in 3.12.4, 4.1.0Explain CVE-2026-57171 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-57171?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-57171?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-57171 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| oscal-compass compliance-trestle | < 3.12.4 |
| oscal-compass compliance-trestle | >= 4.0.0, < 4.1.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-r4vp-3vw6-r2x5 | PyPI | compliance-trestle | <3.12.4 | 3.12.4 |
| GHSA-r4vp-3vw6-r2x5 | PyPI | compliance-trestle | >=4.0.0 <4.1.0 | 4.1.0 |
| PYSEC-2026-4030 | PyPI | compliance-trestle | <3.12.4 >=4.0.0 <4.1.0 | 3.12.4, 4.1.0 |
Red Hat rates this Important.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| File Integrity Operator | compliance/openshift-compliance-content-rhel8 | Not affected | |
| Red Hat Hardened Images | scap-security-guide | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-57171.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.