Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-46345
Published:May 31, 2026
Updated:June 13, 2026
Relevant Products/Components: * "trestle/core/commands/author/jinja.py" * "trestle author jinja" *** Detailed Description: The "-o/--output" argument in "trestle author jinja" allows writing files outside the intended workspace. The application does not properly validate: * "../" * ".." * absolute paths This allows arbitrary file write to attacker-controlled locations. Vulnerable code: output_file = trestle_root / r_output_file An attacker can overwrite files such as: * ".github/workflows/*.yml" * ".git/hooks/*" * user writable config files This can lead to CI/CD compromise or local code execution. *** Steps To Reproduce: 1. Clone the repository: git clone https://github.com/oscal-compass/compliance-trestle.git cd compliance-trestle 2. Create template: echo "hello" > template.j2 3. Run: trestle author jinja -i template.j2 -o "subdir..........\poc.txt" 4. Observe: dir E:\poc.txt The file is written outside the repository workspace. *** Browsers Verified In: Not browser related. Tested on: * Windows 11 * Python 3.13 *** Supporting Material/References: Affected file: trestle/core/commands/author/jinja.py Successfully verified: * directory traversal using "../" * Windows traversal using ".." * arbitrary file write outside workspace *** Access Vector Required for Exploitation: Local *** Vulnerability Exists in Default Configuration?: Yes *** Is the exploitation trivial or does it involve a multi-step process that may depend on user/victim interaction?: Trivial. Single command execution. *** Exploitation Requires Authentication?: No *** Under what privileges does the vulnerable service or component run?: Runs with privileges of the user executing the "trestle" command. Impact An attacker can write files outside the intended workspace directory and overwrite sensitive files writable by the current user. Possible impacts include: * overwriting ".github/workflows/*.yml" to execute attacker-controlled GitHub Actions workflows * overwriting ".git/hooks/*" for local code execution * modifying user configuration files such as ".bashrc" * tampering with repository files and generated compliance artifacts In CI/CD environments, this may result in execution of attacker-controlled commands on build runners.
Affected Packages
compliance-trestle (PYTHON):
Affected version(s) >=0.0.2 <3.12.2
Fix Suggestion:
Update to version 3.12.2
compliance-trestle (PYTHON):
Affected version(s) >=4.0.0 <4.0.3
Fix Suggestion:
Update to version 4.0.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.6
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.4
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
External Control of File Name or Path
Absolute Path Traversal
EPSS
Base Score:
0.05