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.
{
"url": "https://pkg.go.dev/vuln/GO-2026-5542",
"review_status": "REVIEWED"
}{
"imports": [
{
"symbols": [
"Create",
"GetPackageFromSourceOrCluster",
"LoadPackage",
"Pull"
],
"path": "github.com/zarf-dev/zarf/src/pkg/packager"
},
{
"symbols": [
"PackageLayout.Archive",
"PackageLayout.FileName"
],
"path": "github.com/zarf-dev/zarf/src/pkg/packager/layout"
}
]
}