Skip to main content

compliance-trestle EUVDEUVD-2026-66225

| CVE-2026-57171 HIGH
Path Traversal (CWE-22)
2026-08-26 security-advisories@github.com GHSA-r4vp-3vw6-r2x5
7.7
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker influences CI output argument
  2. Delivery
    trestle author command constructs unvalidated path
  3. Exploit
    path traverses outside workspace
  4. Execution
    overwrite sensitive pipeline file (e.g., .github/workflows/*.yml)
  5. Persist
    downstream CI trigger executes attacker content
  6. Impact
    arbitrary code runs on build runner

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the output argument supplied to one of the three vulnerable commands (catalog-generate, profile-generate, or ssp-generate) contains an absolute path or a path traversal sequence (e.g., ../../, /tmp/target), AND that this argument is derived from data the attacker can influence - such as repository-controlled configuration files, PR metadata, branch names, or tenant-supplied inputs processed by a CI job. In direct local use where the operator fully controls the command line, the condition is self-inflicted. The --force-overwrite flag must additionally be present for the destructive directory-deletion variant to trigger. Exploitation is limited to the file permissions of the user or service account running the trestle process; kernel, root, or privileged files outside that user's write scope cannot be overwritten. The vulnerability does not affect the jinja command (already guarded by PathSecurityValidator prior to this CVE) or read-only trestle operations.

Impact

The CVSS 3.1 base score of 7.7 (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H) accurately reflects a local, low-complexity, unauthenticated file-write primitive with no confidentiality impact. Real-world risk is highly context-dependent: in an isolated developer workstation scenario where the operator controls all inputs, exploitability is self-inflicted. The threat model materially shifts in CI/CD pipelines where the output argument is derived from repository-controlled data such as branch names, PR metadata, or tenant-provided configuration - in those environments, a contributor or external pull request author can influence the argument without elevated privileges. EPSS of 0.20% (10th percentile) signals very low automated exploitation probability, consistent with the niche deployment footprint and the requirement for a specific CI trust boundary. No KEV listing is present. The --force-overwrite escalation path (recursive delete + overwrite) is a meaningful multiplier for pipeline compromise scenarios. The discrepancy between the CVE fix versions (3.12.4 / 4.1.0) and the GHSA package advisory fix versions (3.12.2 / 4.0.3) likely reflects two distinct but related path-traversal fixes tracked under separate advisories (GHSA-4q5v-7g7x-j79w for jinja, GHSA-r4vp-3vw6-r2x5 for the author commands) - teams should verify which advisory applies to their specific usage.

Exploit ScenarioDerived

A malicious contributor submits a pull request to a repository whose CI pipeline runs trestle profile-generate with the output path derived from a configuration file tracked in the repo. The contributor sets the output value to ../../.github/workflows/deploy.yml, causing trestle to overwrite the deployment workflow with attacker-controlled content. If --force-overwrite is enabled in the pipeline, the existing workflows directory is recursively deleted first, ensuring the malicious file is written cleanly; on the next pipeline trigger, the attacker's workflow executes on the build runner with CI credentials. No public exploit code specific to CVE-2026-57171 has been identified, though the related jinja variant GHSA-4q5v-7g7x-j79w includes a working reproduction procedure using similar traversal sequences.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 26, 2026

Arbitrary file write and directory deletion in compliance-trestle's catalog-generate, profile-generate, and ssp-generate author commands exposes CI/CD pipelines to workspace-escape attacks when output arguments are derived from untrusted data. The affected commands construct output paths by joining a user-supplied argument onto the Trestle workspace root, but apply only a task-name-collision check rather than the PathSecurityValidator guard already used by the jinja command - allowing absolute paths or traversal sequences to escape the workspace entirely. With --force-overwrite, the primitive escalates to recursive deletion of an attacker-chosen directory tree followed by file creation, enabling indirect code execution by overwriting files (e.g., .github/workflows, .git/hooks, shell profile scripts) that a downstream pipeline subsequently executes. No public exploit is identified at time of analysis, though the GHSA advisory for the related jinja variant (GHSA-4q5v-7g7x-j79w) contains a detailed reproduction procedure.

RemediationAI

Upgrade to compliance-trestle 3.12.4 (3.x line) or 4.1.0 (4.x line), as confirmed by the CVE description and the tagged release at https://github.com/oscal-compass/compliance-trestle/releases/tag/v4.1.0. The fix adds PathSecurityValidator.validate_local_path() calls in catalog.py, prof.py, and ssp.py, and hardens is_directory_name_allowed() to reject absolute paths and any path component containing '..'. If immediate upgrade is not feasible, the primary compensating control is to audit all CI/CD pipeline invocations of trestle author catalog-generate, profile-generate, and ssp-generate and ensure the output argument is hardcoded or derived exclusively from pipeline-controlled (not repository-controlled or tenant-controlled) inputs. Avoid passing --force-overwrite in automated contexts until patched, as this flag activates the destructive deletion primitive. Restricting the filesystem permissions of the service account running trestle in CI to a confined workspace directory limits the blast radius but does not eliminate the vulnerability.

Affected VersionsENISA

compliance-trestle 4.0.0, < 4.1.0
compliance-trestle < 3.12.4

Affected Packages

pypi compliance-trestle fix: 3.12.4, 4.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

compliance-trestle is a Python SDK and CLI (pip: compliance-trestle) for authoring and managing OSCAL (Open Security Controls Assessment Language) compliance documents. The vulnerability resides in the _run() methods of trestle/core/commands/author/catalog.py, prof.py, and ssp.py. These commands accept a user-supplied output argument and construct a filesystem path as trestle_root / output without invoking PathSecurityValidator.validate_local_path(), the guard already present in the jinja command. The sole gate, is_directory_name_allowed(), performs only a task-name-collision check and did not block absolute paths or '..' components prior to the fix. CWE-22 (Path Traversal) is the root cause: unvalidated path concatenation allows an adversary-controlled string to override the intended directory boundary. CPE data is not formally published in NVD for this package; the affected Python package is pip/compliance-trestle versions < 3.12.4 and 4.0.0 through 4.0.3.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.7 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 7.7 HIGH

Local execution of the trestle CLI with no privileges required; no confidentiality impact; integrity and availability both high due to arbitrary write and destructive overwrite with --force-overwrite.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.7 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 21:03 EUVD
CVE Published
Aug 26, 2026 - 05:18 cve.org
HIGH 7.7

DescriptionCVE.org

Compliance-trestle (Trestle) is a Python SDK and command-line tool for managing OSCAL compliance documents. In versions before 3.12.4 and versions 4.0.0 through 4.0.3, the catalog-generate, profile-generate, and ssp-generate author commands write generated Markdown to an attacker-influenced output path without path-traversal validation, allowing arbitrary file write outside the Trestle workspace. These commands join the user-supplied output argument onto the Trestle root and write to the result, but guard it only with an is_directory_name_allowed() task-name-collision check rather than the PathSecurityValidator.validate_local_path() guard used by the jinja command, so an absolute path or one containing traversal sequences escapes the workspace and writes files under an attacker-chosen location as the invoking process owner. The security boundary is crossed when a trusted CI job, shared service, or wrapper derives the output argument from repository-controlled, tenant-controlled, or otherwise untrusted data while expecting output to stay inside the workspace. When --force-overwrite is used, the selected output directory is first recursively deleted, extending the primitive to destruction of an attacker-chosen directory tree and enabling indirect code execution by overwriting files a pipeline later runs. This issue is fixed in versions 3.12.4 and 4.1.0.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

Compliance-trestle's author commands (catalog-generate, profile-generate, ssp-generate) contain a path traversal vulnerability (CVSS 7.7) enabling arbitrary file write and directory deletion when processing untrusted input arguments. Organizations using compliance-trestle in CI/CD automation for compliance framework management face potential code execution if attackers manipulate file paths to overwrite executable files (.github/workflows, shell profiles, git hooks). No vendor-released patch identified at time of analysis.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement the following interim mitigations: (1) strict allowlist-based input validation for all output path arguments, rejecting any containing path traversal sequences or absolute paths; (2) Unix file permissions and directory ownership controls restricting write access outside designated workspace boundaries; (3) disable --force-overwrite flag in all CI/CD automation configurations; (4) execute compliance-trestle in isolated containers with restricted file system scope; (5) deploy execution monitoring and alerting for unexpected file operations to parent directories or system directories (.github/workflows, .git/hooks, shell profiles).

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche Python SDK for OSCAL compliance, primarily federal/GRC sector
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy