Advisory

GHSA-w76h-q7c6-jpjp

Also known as: CVE-2026-46380, PYSEC-2026-2427

Summary

compliance-trestle Vulnerable to SSRF in Remote Fetching Subsystem

Details

A source code audit led to the discovery of three significant security vulnerabilities in the trestle/core/remote/cache.py module.

Finding 1 (Critical): SSRF (CWE-918)
The HTTPSFetcher._do_fetch() method passes a user-supplied URL directly to requests.get() without validation. This allows an attacker to perform Server-Side Request Forgery, targeting internal services or cloud metadata endpoints (e.g., 169.254.169.254).

Per rule 4.2.11 of the CVE CNA rules Finding 1 will be addressed in this advisory, while findings 2 & 3 will be addressed in separate advisories:

---

Multiple Path Traversal Vulnerabilities in Remote Fetching Subsystem

Finding 2 & 3 (High/Medium): Path Traversal (CWE-22)
The caching logic for HTTPSFetcher and LocalFetcher fails to sanitize URI paths, allowing for arbitrary file reads via file:// or writing cached files outside the intended directory.

Impact: > These vulnerabilities can be chained to exfiltrate sensitive cloud credentials or compromise CI/CD environments.

Reproduction: > Please see the attached poc_ssrf_and_path_traversal.py and terminal_output.txt. 13 exploit vectors have been verified locally.

compliance-trestle_audit_2026-03-30.pdf
poc_ssrf_and_path_traversal.py
terminal_output.txt

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-28 18:27 UTC
Modified
2026-07-13 16:43 UTC

Affected packages and fixes

compliance-trestle

PyPI · All systems

Affected

  • introduced 4.0.0, fixed 4.0.3 (ecosystem)

Fixed versions

4.0.3

Fix

  • Fixed version 4.0.3
    pip install --upgrade compliance-trestle==4.0.3

compliance-trestle

PyPI · All systems

Affected

  • introduced 0, fixed 3.12.2 (ecosystem)

Fixed versions

3.12.2

Fix

  • Fixed version 3.12.2
    pip install --upgrade compliance-trestle==3.12.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences