CVE-2026-46345: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in oscal-compass compliance-trestle
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.
AI Analysis
Technical Summary
compliance-trestle versions before 3.12.2 and 4.0.3 contain a path traversal vulnerability (CWE-22) in the handling of the `-o/--output` argument of the `trestle author jinja` command. The application fails to properly validate relative path components such as `../` or `..\` and absolute paths, enabling an attacker to write files outside the designated workspace directory. This improper limitation of pathname allows arbitrary file write to locations controlled by the attacker. The vulnerability is addressed in versions 3.12.2 and 4.0.3.
Potential Impact
Successful exploitation allows an attacker to write arbitrary files to locations outside the intended workspace, potentially leading to system compromise, data corruption, or privilege escalation depending on the environment and file system permissions. The CVSS score of 8.4 (high) reflects the significant confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade compliance-trestle to version 3.12.2 or later, or 4.0.3 or later, where this path traversal vulnerability has been fixed. No other mitigations are specified. Patch status is confirmed by the version information in the advisory.
CVE-2026-46345: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in oscal-compass compliance-trestle
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.
CVSS v3.1
Score 8.4high
Affected software
oscal-compass
compliance-trestle
pkg:pypi/compliance-trestleRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
compliance-trestle versions before 3.12.2 and 4.0.3 contain a path traversal vulnerability (CWE-22) in the handling of the `-o/--output` argument of the `trestle author jinja` command. The application fails to properly validate relative path components such as `../` or `..\` and absolute paths, enabling an attacker to write files outside the designated workspace directory. This improper limitation of pathname allows arbitrary file write to locations controlled by the attacker. The vulnerability is addressed in versions 3.12.2 and 4.0.3.
Potential Impact
Successful exploitation allows an attacker to write arbitrary files to locations outside the intended workspace, potentially leading to system compromise, data corruption, or privilege escalation depending on the environment and file system permissions. The CVSS score of 8.4 (high) reflects the significant confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade compliance-trestle to version 3.12.2 or later, or 4.0.3 or later, where this path traversal vulnerability has been fixed. No other mitigations are specified. Patch status is confirmed by the version information in the advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T18:37:30.990Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a834becbf8831d5394ecf78
Added to database: 08/17/2026, 17:59:08 UTC
Last enriched: 08/17/2026, 18:11:45 UTC
Last updated: 10/02/2026, 02:46:04 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.