← Terug naar overzicht

Compliance-trestle (Trestle), a Python SDK and CLI tool for managing OSCAL compliance documents, contains a path traversal vulnerability in versions before 3.12.4 and 4.0.0 through 4.0.3. The catalog-generate, profile-generate, and ssp-generate author commands fail to validate user-supplied output paths, allowing an attacker to write files outside the intended Trestle workspace. The flaw exists because these commands use only an is_directory_name_allowed() check rather than the stricter PathSecurityValidator.validate_local_path() guard. When the --force-overwrite flag is used, the vulnerability is escalated to recursive directory deletion and potential indirect code execution by overwriting pipeline-executed files. The security boundary is crossed when trusted CI/CD jobs or shared services derive the output argument from untrusted, repository-controlled, or tenant-controlled data. The vulnerability has been patched in versions 3.12.4 and 4.1.0.

Affected products

  • Trestle Python SDK
  • compliance-trestle

Related CVE's

  • CVE-2026-57171

Categories

  • Security Tools
  • Supply Chain & Dependencies
  • Web Technologies