# CVE-2026-45725: IBM compliance-trestle arbitrary file write via cache path traversal

Source: https://junglewise.ai/threats/cve-2026-45725-ibm-compliance-trestle-arbitrary-file-write-via-cache-path  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-13. Updated: 2026-05-27  
License: CC BY 4.0 with a link back

CVE-2026-45725 · Severity: high · CVSS 4 · Published 2026-08-13

IBM compliance-trestle is a library used to manage compliance information. A security flaw in how it handles remote files allows an attacker to trick the system into writing malicious files to any location on the server's hard drive. This could allow an attacker to take full control of the system, steal data, or disrupt operations by overwriting critical configuration files or injecting malicious commands.

Technologies: [compliance-trestle (PyPI)](https://junglewise.ai/threats/technologies/compliance-trestle). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-45725 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45725 being exploited in the wild.

**How severe is CVE-2026-45725?** High severity, with a CVSS score of 4, published 13 August 2026.

**Which products and versions are affected?** compliance-trestle (PyPI) ECOSYSTEM:introduced=0,fixed=3.12.2,introduced=4.0.0,fixed=4.0.3, ECOSYSTEM:introduced=4.0.0,fixed=4.0.3.

**Is there a fix for CVE-2026-45725?** Yes. compliance-trestle (PyPI): upgrade to 4.0.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-45725 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-45725?** Check whether you run compliance-trestle (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- compliance-trestle (PyPI): upgrade to 4.0.3 or later

  ```sh
  pip install "compliance-trestle>=4.0.3"
  ```


## Technical details

A path traversal vulnerability exists in the HTTPSFetcher and SFTPFetcher components of compliance-trestle (specifically in trestle/core/remote/cache.py). The library constructs local cache file paths using unsanitized components from remote URLs, preserving '../' sequences. An attacker can provide a malicious OSCAL profile referencing a URL with traversal sequences, causing the fetched content to be written outside the intended cache directory. This can be leveraged for arbitrary file write and subsequent Remote Code Execution (RCE) by overwriting sensitive files like cron jobs, SSH authorized_keys, or Python modules. The issue is fixed in versions 4.0.3 and 3.12.2.

## Affected products

- IBM compliance-trestle >= 4.0.0, <= 4.0.2

## Identifiers

- CVE-2026-45725
- GHSA-g3vg-vx23-3858
- PYSEC-2026-2424

## Timeline

- 2026-04-30: disclosed: Vulnerability identified in version 4.0.2
- 2026-05-27: advisory: GitHub Advisory GHSA-g3vg-vx23-3858 published
- 2026-05-27: patched: Fixed in versions 4.0.3 and 3.12.2

## References

- [https://api.github.com/users/AnistoMejin](https://api.github.com/users/AnistoMejin)
- [https://github.com/AnistoMejin](https://github.com/AnistoMejin)
- [https://api.github.com/users/AnistoMejin/gists%7B/gist_id%7D](https://api.github.com/users/AnistoMejin/gists%7B/gist_id%7D)
- [https://api.github.com/users/AnistoMejin/repos](https://api.github.com/users/AnistoMejin/repos)
- [https://avatars.githubusercontent.com/u/83238573?v=4](https://avatars.githubusercontent.com/u/83238573?v=4)
- [https://api.github.com/users/AnistoMejin/events%7B/privacy%7D](https://api.github.com/users/AnistoMejin/events%7B/privacy%7D)

## Related threats

- [compliance-trestle author generate path traversal file write](https://junglewise.ai/threats/cve-2026-57171-compliance-trestle-author-generate-path-traversal-file-write)
- [Compliance-trestle server-side template injection in Jinja2 tags](https://junglewise.ai/threats/cve-2026-57170-compliance-trestle-server-side-template-injection-in-jinja2-tags)
- [compliance-trestle SSRF allowlist bypass in URLSecurityValidator](https://junglewise.ai/threats/cve-2026-52776-compliance-trestle-ssrf-allowlist-bypass-in-urlsecurityvalidator)
- [oscal-compass compliance-trestle path traversal in jinja command](https://junglewise.ai/threats/cve-2026-46345-oscal-compass-compliance-trestle-path-traversal-in-jinja-command)
- [IBM compliance-trestle path traversal in profile import](https://junglewise.ai/threats/cve-2026-45774-ibm-compliance-trestle-path-traversal-in-profile-import)
