cve.bz

CVE-2026-46345 oscal-compass compliance-trestle: Path traversal

8.4 highEPSS 0.2%Fix available

High (8.4) in oscal-compass compliance-trestle. EPSS 0.2% 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. Prior to versions 3.12.2 and 4.0.3, the `-o/--output` argument in `trestle author jinja` allows writing files outside the intended workspace. The application does not properly validate, `../`, `..\`, or absolute paths. This allows arbitrary file write to attacker-controlled locations. Versions 3.12.3 and 4.0.3 patch the issue.

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 10th 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-17. 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-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-36 Absolute Path Traversal
CWE-73 External Control of File Name or Path
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
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 4.0.3, 3.12.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-46345 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-46345?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-46345?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-46345 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>= 4.0.0, < 4.0.3
oscal-compass compliance-trestle< 3.12.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4q5v-7g7x-j79wPyPIcompliance-trestle>=4.0.0 <4.0.34.0.3
GHSA-4q5v-7g7x-j79wPyPIcompliance-trestle<3.12.23.12.2
PYSEC-2026-2423PyPIcompliance-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

An IMPORTANT impact path traversal flaw was found in compliance-trestle, a compliance-as-code framework that Red Hat uses only as a build-time dependency when generating compliance content. The `trestle author jinja` command does not properly validate the `-o/--output` argument for `../`, `..\`, or absolute path sequences, allowing a local attacker who controls that argument to write files to arbitrary locations outside the intended workspace, potentially resulting in unauthorized modification of system files or data. Red Hat rated this flaw IMPORTANT (CVSS 8.4, CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), which matches the upstream CVSS rating, so there is no meaningful severity difference. The two Red Hat product streams that reference compliance-trestle, the File Integrity Operator's openshift-compliance-content-rhel8 content image and the Red Hat Hardened Images scap-security-guide package, are DELEGATED; the responsible business units determined that the vulnerable component is not present in the shipped products (delegated resolution NOTAFFECTED), so no Red Hat product is known to be exposed to this flaw at runtime.

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-46345.

Attack patterns (CAPEC)

  • CAPEC-597 Absolute Path Traversal
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High
  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding 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