← Back to CVE Explorer

CVE-2026-46345

Full vulnerability record from the local CVENow database.

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.

Severity
HIGH
CVSS score
8.4 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-08-17 18:16:38.393000
Last modified
2026-10-23 16:10:00.313000
View original CVE JSON
{
  "id": "CVE-2026-46345",
  "sourceIdentifier": "[email protected]",
  "published": "2026-08-17T18:16:38.393",
  "lastModified": "2026-10-23T16:10:00.313",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "compliance-trestle es una plataforma de herramientas para gestionar el cumplimiento como código. Antes de las versiones 3.12.2 y 4.0.3, el argumento ’-o/--output’ en ’trestle author jinja’ permite escribir archivos fuera del espacio de trabajo previsto. La aplicación no valida correctamente ’.. / ’, ’.. / ’, o rutas absolutas. Esto permite la escritura arbitraria de archivos en ubicaciones controladas por el atacante. Las versiones 3.12.3 y 4.0.3 parchean el problema."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "oscal-compass",
          "product": "compliance-trestle",
          "versions": [
            {
              "version": ">= 4.0.0, < 4.0.3",
              "status": "affected"
            },
            {
              "version": "< 3.12.2",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "baseScore": 8.4,
          "baseSeverity": "HIGH",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.5,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-08-17T18:03:21.229026Z",
          "id": "CVE-2026-46345",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Primary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-22"
        },
        {
          "lang": "en",
          "value": "CWE-36"
        },
        {
          "lang": "en",
          "value": "CWE-73"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2423.yaml",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-4q5v-7g7x-j79w",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}