GO-2026-5542

Source
https://pkg.go.dev/vuln/GO-2026-5542
Import Source
https://vuln.go.dev/ID/GO-2026-5542.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-5542
Aliases
Published
2026-07-23T16:32:52Z
Modified
2026-07-23T17:00:24.617246673Z
Summary
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.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2026-5542",
    "review_status": "REVIEWED"
}
References

Affected packages

Go / github.com/defenseunicorns/zarf

Package

Name
github.com/defenseunicorns/zarf
View open source insights on deps.dev
Purl
pkg:golang/github.com/defenseunicorns/zarf

Affected ranges

Type
SEMVER
Events
Introduced
0.23.0

Ecosystem specific

{
    "imports": [
        {
            "symbols": [
                "Packager.Create"
            ],
            "path": "github.com/defenseunicorns/zarf/src/pkg/packager"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5542.json"

Go / github.com/zarf-dev/zarf

Package

Name
github.com/zarf-dev/zarf
View open source insights on deps.dev
Purl
pkg:golang/github.com/zarf-dev/zarf

Affected ranges

Type
SEMVER
Events
Introduced
0.37.0
Fixed
0.74.2

Ecosystem specific

{
    "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"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5542.json"