Loading advisory.
Loading advisory.
compliance-trestle - jinja has an Arbitrary File Write via Path Traversal
Relevant Products/Components:
Published 2026-05-28 17:44 UTC · Modified 2026-08-27 04:10 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| compliance-trestle | PyPI | >= 4.0.0, < 4.0.3 < 3.12.2 versions 4.0.0, 4.0.1, 4.0.2, 0.0.2, 0.0.3, 0.1.0, 0.1.1, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.15.0, 0.15.1, 0.16.0 and 80 more | 4.0.3, 3.12.2 | pip install --upgrade 'compliance-trestle>=4.0.3'pip install --upgrade 'compliance-trestle>=3.12.2' |
Relevant Products/Components:
trestle/core/commands/author/jinja.py
trestle author jinja
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_fileAn 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.
Clone the repository:
git clone https://github.com/oscal-compass/compliance-trestle.git
cd compliance-trestleCreate template:
echo "hello" > template.j2Run:
trestle author jinja -i template.j2 -o "subdir\..\..\..\..\..\poc.txt"Observe:
dir E:\poc.txtThe file is written outside the repository workspace.
Not browser related.
Tested on:
Windows 11
Python 3.13
Affected file:
trestle/core/commands/author/jinja.pySuccessfully verified:
directory traversal using ../
Windows traversal using ..\
arbitrary file write outside workspace
Local
Yes
Trivial. Single command execution.
No
Runs with privileges of the user executing the trestle command.
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.002 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |