Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker influences CI output argument
-
Deliverytrestle author command constructs unvalidated path
-
Exploitpath traverses outside workspace
-
Executionoverwrite sensitive pipeline file (e.g., .github/workflows/*.yml)
-
Persistdownstream CI trigger executes attacker content
-
Impactarbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-66225
GHSA-r4vp-3vw6-r2x5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB