{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.0.3"
              },
              {
                "introduced": "0"
              },
              {
                "fixed": "3.12.2"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "d965ee5a9a1c2680c80bfa3e63cd75f4fc488881"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "c797d962d0cc249b4dff767c506e3c23ee0dce70"
            },
            {
              "fixed": "e465a917c80f5b28a45fd01f204aed1223ed626f"
            },
            {
              "fixed": "247fcce289f60103f3d8e28d8ec51a6986b94fb6"
            },
            {
              "fixed": "7d107b3ac53caca7bde97a6278b23cd739d94525"
            }
          ],
          "repo": "https://github.com/oscal-compass/compliance-trestle",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4q5v-7g7x-j79w"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22",
      "CWE-36",
      "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46345.json"
  },
  "details": "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.",
  "id": "CVE-2026-46345",
  "modified": "2026-08-19T03:31:09.525714216Z",
  "published": "2026-08-17T17:54:16.944Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46345.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2423.yaml"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-46345"
    },
    {
      "type": "FIX",
      "url": "https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6"
    },
    {
      "type": "FIX",
      "url": "https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "compliance-trestle - jinja has an Arbitrary File Write via Path Traversal"
}