CVE-2026-45725 compliance-trestle Remote Fetching Mechanism has an Arbitrary File Write via Cache Path Traversal
Attackers can write arbitrary files to the filesystem via path traversal in the remote fetching cache mechanism of the compliance-trestle library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-45725?
CVE-2026-45725 is a high-severity path traversal vulnerability in oscal-compass compliance-trestle, published on 13 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
compliance-trestle is a tooling platform for managing compliance as code. Prior to versiions 3.12.2 and 4.0.3, the compliance-trestle library's remote fetching cache mechanism (HTTPSFetcher and SFTPFetcher) constructs the local cache file path from the URL path component without sanitizing path traversal sequences (`../`). When a remote OSCAL profile references a URL with traversal in its path, the HTTP response body is written to a location outside the intended cache directory, enabling arbitrary file write with attacker-controlled content to the filesystem. Versions 3.12.3 and 4.0.3 patch the issue.
Weakness: CWE-73
Which versions are affected by CVE-2026-45725?
5 open source packages ship an affected version, including compliance-trestle.
| Package | Affected | Fixed in |
|---|---|---|
compliance-trestle PyPI | All versions | 3.12.2, 4.0.3 |
compliance-trestle PyPI | All versions | 3.12.2 |
compliance-trestle PyPI | All versions | 3.12.2 |
compliance-trestle PyPI | From 4.0.0 | 4.0.3 |
compliance-trestle PyPI | From 4.0.0 | 4.0.3 |
How do I fix CVE-2026-45725?
Upgrade compliance-trestle to a fixed version for your release line: 3.12.2 or 4.0.3.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-45725 being exploited?
There is no known exploitation of CVE-2026-45725 in the wild and no public exploit code.
Sources
Also known as GHSA-g3vg-vx23-3858, PYSEC-2026-2424.