{"id":"CVE-2026-46380","aliases":["CVE-2026-46380","GHSA-w76h-q7c6-jpjp","PYSEC-2026-2427"],"related":[],"kind":"vulnerability","state":"published","title":"compliance-trestle Vulnerable to SSRF in Remote Fetching Subsystem","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"A source code audit led to the discovery of three significant security vulnerabilities in the trestle/core/remote/cache.py module.\n\n**Finding 1 (Critical): SSRF (CWE-918)**\nThe 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).\n\nPer [rule 4.2.11 of the CVE CNA rules](https://www.cve.org/ResourcesSupport/AllResources/CNARules#section_4-2_CVE_ID_Assignment) Finding 1 will be addressed in this advisory, while findings 2 & 3 will be addressed in separate advisories:\n\n---\n\nMultiple Path Traversal Vulnerabilities in Remote Fetching Subsystem\n\n**Finding 2 & 3 (High/Medium): Path Traversal (CWE-22)**\nThe 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.\n\nImpact: > These vulnerabilities can be chained to exfiltrate sensitive cloud credentials or compromise CI/CD environments.\n\nReproduction: > Please see the attached poc_ssrf_and_path_traversal.py and terminal_output.txt. 13 exploit vectors have been verified locally.\n\n[compliance-trestle_audit_2026-03-30.pdf](https://github.com/user-attachments/files/26348930/compliance-trestle_audit_2026-03-30.pdf)\n[poc_ssrf_and_path_traversal.py](https://github.com/user-attachments/files/26348820/poc_ssrf_and_path_traversal.py)\n[terminal_output.txt](https://github.com/user-attachments/files/26348821/terminal_output.txt)","format":"markdown","source":"ghsa"}],"published":"2026-05-28T18:27:13.000Z","modified":"2026-09-18T20:09:01.757Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.7,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.7,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.0.3","status":"affected"},{"version":"< 3.12.2","status":"affected"}],"vendor":"oscal-compass","product":"compliance-trestle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.3"}],"ecosystem":"PyPI","package":"compliance-trestle","purl":"pkg:pypi/compliance-trestle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.12.2"}],"ecosystem":"PyPI","package":"compliance-trestle","purl":"pkg:pypi/compliance-trestle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.12.2"},{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.3"}],"ecosystem":"PyPI","package":"compliance-trestle","purl":"pkg:pypi/compliance-trestle","source":"pysec"}],"references":[{"url":"https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-w76h-q7c6-jpjp","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/oscal-compass/compliance-trestle/commit/53de5e75332888ea54f5da41d4c7859bb1d608e1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/oscal-compass/compliance-trestle/commit/5c65c5926fe7ca908b9c1d281f904e7d97ba8310","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2427.yaml","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/oscal-compass/compliance-trestle","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/compliance-trestle","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-w76h-q7c6-jpjp","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46380","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-17T19:38:14.389Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46380","url":"https://www.cve.org/CVERecord?id=CVE-2026-46380","licence":"CVE Terms of Use","modified":"2026-08-17T19:38:22.477Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w76h-q7c6-jpjp","url":"https://github.com/advisories/GHSA-w76h-q7c6-jpjp","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:37.864Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46380","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46380","licence":"Public domain","modified":"2026-09-18T20:09:01.757Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2427","url":"https://osv.dev/vulnerability/PYSEC-2026-2427","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:36.325Z"}],"updatedAt":"2026-11-25T22:59:32.923Z","epss":{"score":0.00156,"percentile":0.05047,"date":"2026-12-01T12:00:22.000Z"}}