6.7medium
compliance-trestle Vulnerable to SSRF in Remote Fetching Subsystem
- Severity
- 6.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w76h-q7c6-jpjpPYSEC-2026-2427
Description
compliance-trestle is a tooling platform for managing compliance as code. Prior to versions 3.12.2 and 4.0.3, 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. Versions 3.12.2 and 4.0.3 fix the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| oscal-compass compliance-trestle | >= 4.0.0, < 4.0.3, < 3.12.2 | CVE List |
| compliance-trestle (PyPI) | from 4.0.0 before 4.0.3, before 3.12.2 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| PyPA Advisory Database | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
compliance-trestle is a tooling platform for managing compliance as code. Prior to versions 3.12.2 and 4.0.3, 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. Versions 3.12.2 and 4.0.3 fix the issue.
GitHub Advisory Database
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46380 changed 2026-08-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w76h-q7c6-jpjp changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-46380 changed 2026-09-18 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2427 changed 2026-07-13 | CC-BY-4.0 |