ADVISORIES

Go Vulnerability Database

GO-2026-5542

Path traversal via malicious package name in github.com/zarf-dev/zarf

Details

A path traversal vulnerability in Zarf allows an attacker to write arbitrary files on the host system by providing a malicious package name in the package metadata. This occurs when Zarf generates SBOM or documentation outputs, or when creating a package, as it fails to properly sanitize the package name before using it in a file path.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/defenseunicorns/zarf
From 0.23.0, no fix listed
Gogithub.com/zarf-dev/zarf
From 0.37.0 before 0.74.2 (fixed in 0.74.2)

References