{
  "id": "CVE-2026-46345",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46345",
  "published_at": "2026-08-17T17:54:16.944Z",
  "title": "compliance-trestle - jinja has an Arbitrary File Write via Path Traversal",
  "vendor": "oscal-compass",
  "product": "compliance-trestle",
  "cvss": {
    "score": 8.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "compliance-trestle is a tooling platform for managing compliance as code. Prior to versions 3.12.2 and 4.0.3, the `-o/--output` argument in `trestle author jinja` allows writing files outside the intended workspace. The application does not properly validate, `../`,  `..\\`, or absolute paths. This allows arbitrary file write to attacker-controlled locations. Versions 3.12.3 and 4.0.3 patch the issue.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 8.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "oscal-compass",
        "product": "compliance-trestle",
        "ranges": [
          "\u003e= 4.0.0, \u003c 4.0.3",
          "\u003c 3.12.2"
        ],
        "fixed_in": [
          "4.0.3",
          "3.12.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade compliance-trestle to 4.0.3 or 3.12.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
