Skip to main content
EPSS 0.2%top 91%

CVE-2026-46345: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in oscal-compass compliance-trestle

0
High
Published: 08/17/2026 (08/17/2026, 17:54:16 UTC)
Source: CVE Database V5
Vendor/Project: oscal-compass
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

oscal-compass

compliance-trestle

Affected versions
>=4.0.0 <4.0.3<3.12.2
compliance-trestle
pkg:pypi/compliance-trestle
Affected versions
<3.12.2>=3.12.0 <3.12.2<4.0.3

Run 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

AILast updated: 08/17/2026, 18:11:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses