CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.8) 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:L/UI:N/S:U/C:H/I:H/A:Hcompliance-trestle (PyPI): fixed in 3.12.4, 4.1.0Explain CVE-2026-57170 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-57170?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-57170?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-57170 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-mr95-65j8-9mxp | PyPI | compliance-trestle | <3.12.4 | 3.12.4 |
| GHSA-mr95-65j8-9mxp | PyPI | compliance-trestle | >=4.0.0 <4.1.0 | 4.1.0 |
| PYSEC-2026-4029 | 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 impact Server-Side Template Injection (SSTI) flaw was found in compliance-trestle, a Python SDK and command-line tool for managing OSCAL compliance documents. The custom Jinja2 include tags mdsection_include and md_clean_include re-parse the content of included Markdown files as Jinja2 template code in a non-sandboxed Jinja2 environment. An attacker who can control OSCAL data that is rendered into an included Markdown file, such as a control statement, part prose, or a component description, can embed Jinja2 syntax that is evaluated when the include tag re-parses the file, resulting in arbitrary code execution in the context of the user processing the OSCAL content (CVSS 3.1: 7.8, AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). Red Hat products are not affected by this flaw: the two Red Hat products initially linked to this component, the File Integrity Operator compliance content container image and the scap-security-guide package in Red Hat hardened images, consume compliance-trestle only as a build-time dependency when generating compliance content, and the responsible teams assessed the shipped artifacts as not affected because the vulnerable component is not present in them.
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. Upstream has fixed this issue in compliance-trestle 3.12.4 and 4.1.0, so users of the upstream project should upgrade to a fixed version. No Red Hat products ship the vulnerable component, so no Red Hat-specific update is required.
| 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-57170.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.