cve.bz

CVE-2026-46439 oscal-compass compliance-trestle: Code Injection

7.8 highEPSS 0.3%Fix available

High (7.8) in oscal-compass compliance-trestle. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in compliance-trestle 3.12.2, 4.0.3.

On this page
compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables). The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required. This distinction is critical: the template author may only intend to render plain text (e.g., `Title: {{ ssp.metadata.title }}`), but because of the recursive parsing, the data field itself becomes executable. The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output. Versions 3.12.3 and 4.0.3 patch the issue.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-08-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • compliance-trestle (PyPI): fixed in 3.12.2, 4.0.3

Ask an AI about this CVE

Show the promptExplain CVE-2026-46439 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-46439?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-46439?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-46439 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
oscal-compass compliance-trestle< 3.12.2
oscal-compass compliance-trestle>= 4.0.0, < 4.0.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gg2g-p7xc-qqmmPyPIcompliance-trestle<3.12.23.12.2
GHSA-gg2g-p7xc-qqmmPyPIcompliance-trestle>=4.0.0 <4.0.34.0.3
PYSEC-2026-2425PyPIcompliance-trestle<3.12.2
>=4.0.0 <4.0.3
3.12.2, 4.0.3

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in compliance-trestle, an upstream compliance-as-code framework that appears as a build-time dependency in some Red Hat compliance content. The `trestle author jinja` command recursively re-compiles and re-renders already-rendered template output using a non-sandboxed Jinja2 environment. An attacker who controls input data that is rendered into a trusted template, such as SSP documents or Lookup Tables, can inject Jinja2 expressions into data fields that become executable during recursive rendering, resulting in arbitrary command execution with the privileges of the process running the command; control of the template itself is not required. Exploitation requires a user to run the `trestle author jinja` command against attacker-controlled input data. Red Hat rates this flaw as IMPORTANT severity (CVSS 7.8, CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), consistent with the upstream CVSS assessment. The linked Red Hat product streams, the compliance content container image shipped with the File Integrity Operator and scap-security-guide in Red Hat Hardened Images, were assessed by the responsible product teams as not affected because the vulnerable compliance-trestle component is not present in the shipped products.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
File Integrity Operatorcompliance/openshift-compliance-content-rhel8Not affected
Red Hat Hardened Imagesscap-security-guideNot 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-46439.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON