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