compliance-trestle - jinja has an Arbitrary File Write via Path Traversal
oscal-compass compliance-trestle
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| compliance-trestle PyPI |
|
|
Original description
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.