# CVE-2026-45774: compliance-trestle Profile Import has an Arbitrary File Read via trestle:// URI and Relative Path Traversal

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-28T17:37:08.000Z
- Modified: 2026-09-18T20:09:01.757Z
- Also known as: GHSA-mj4x-vf5c-5xg8, PYSEC-2026-2426
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

compliance-trestle is a tooling platform for managing compliance as code. Prior to versions 3.12.2 and 4.0.3, the compliance-trestle library's profile import mechanism resolves `trestle://` URIs and relative file paths by joining them with `trestle_root` and calling `.resolve()`, but performs no boundary check to ensure the resolved path stays within the trestle workspace. An attacker can craft a malicious OSCAL profile YAML with `imports[].href` containing path traversal sequences to read arbitrary files from the server filesystem. Versions 3.12.3 and 4.0.3 patch the issue.

(As written by CVE List.)

## Affected

- oscal-compass compliance-trestle: < 3.12.2; >= 4.0.0, < 4.0.3
- compliance-trestle (PyPI): from 4.0.0 before 4.0.3; before 3.12.2

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-mj4x-vf5c-5xg8> (exploit, web)
- <https://github.com/oscal-compass/compliance-trestle/commit/5c65c5926fe7ca908b9c1d281f904e7d97ba8310> (web)
- <https://github.com/oscal-compass/compliance-trestle/commit/d00a0c2f702c24f7016009fbd626036f5c46f47b> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2426.yaml>
- <https://github.com/oscal-compass/compliance-trestle> (package)
- <https://pypi.org/project/compliance-trestle> (package)
- <https://github.com/advisories/GHSA-mj4x-vf5c-5xg8> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45774> (advisory)

## Sources

- CVE List: [CVE-2026-45774](https://www.cve.org/CVERecord?id=CVE-2026-45774), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-mj4x-vf5c-5xg8](https://github.com/advisories/GHSA-mj4x-vf5c-5xg8), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-45774](https://nvd.nist.gov/vuln/detail/CVE-2026-45774), Public domain, modified 2026-09-18
- PyPA Advisory Database: [PYSEC-2026-2426](https://osv.dev/vulnerability/PYSEC-2026-2426), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-45774 · Whole record: https://cve.day/CVE-2026-45774.json · Rebuilt by cve.day 2026-11-25T22:59:32.836Z
