CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HHigh (7.8) in oscal-compass compliance-trestle. EPSS 0.4% 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:R/S:U/C:H/I:H/A:Hcompliance-trestle (PyPI): fixed in 3.12.4, 4.1.0Explain CVE-2026-54757 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54757?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54757?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-54757 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-jw39-3688-r4rx | PyPI | compliance-trestle | <3.12.4 | 3.12.4 |
| GHSA-jw39-3688-r4rx | PyPI | compliance-trestle | >=4.0.0 <4.1.0 | 4.1.0 |
| PYSEC-2026-3817 | 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 (CVSS 3.1 score 7.8, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) was found in Compliance-trestle (Trestle), an upstream Python SDK and command-line tool for managing OSCAL compliance documents. The MDCleanInclude and MDSectionInclude custom Jinja2 tags in Trestle re-parse untrusted Markdown content as Jinja2 template source code using a non-sandboxed jinja2.Environment. An attacker who controls content that Trestle renders, such as a crafted workspace Markdown file, a third-party SSP document, or a YAML lookup-table value, can inject a Jinja2 expression that traverses Python object internals to execute arbitrary operating system commands in the context of the Trestle process. Exploitation requires a user to process attacker-controlled content with Trestle (local attack vector with user interaction required). The Red Hat products listed on this flaw are not affected: the File Integrity Operator compliance content image and scap-security-guide in Red Hat Hardened Images consume compliance-trestle only as a build-time dependency, and the vulnerable component is not present in the shipped artifacts, so the corresponding product trackers were closed as Not a Bug with a Component not Present justification. The Red Hat severity rating of IMPORTANT is consistent with the upstream rating.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
| 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-54757.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.