compliance-trestle - jinja has an Arbitrary File Write via Path Traversal
Summary
| CVE | CVE-2026-46345 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-17 18:16:38 UTC |
| Updated | 2026-08-17 18:16:38 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.4 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.001580000 probability, percentile 0.055010000 (date 2026-08-18)
Problem Types: CWE-22 | CWE-36 | CWE-73 | CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CWE-36 CWE-36: Absolute Path Traversal | CWE-73 CWE-73: External Control of File Name or Path
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8.4 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.4 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Oscal-compass | Compliance-trestle | affected >= 4.0.0, < 4.0.3 | Not specified |
| CNA | Oscal-compass | Compliance-trestle | affected < 3.12.2 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97... | [email protected] | github.com | |
| github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYS... | [email protected] | github.com | |
| github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5... | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | |
| github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.