Skip to content
OpenAdvisories
High · 7.1 CVE-2026-40090 EUVD-2026-22814GHSA-pj97-4p9w-gx3qGO-2026-5542

Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write

Published Apr 14, 2026 · Updated Apr 15, 2026 · Assigned by GitHub_M

Description

Zarf is an Airgap Native Packager Manager for Kubernetes. Versions 0.23.0 through 0.74.1 contain an arbitrary file write vulnerability in the zarf package inspect sbom and zarf package inspect documentation subcommands. These subcommands output file paths are constructed by joining a user-controlled output directory with the package's Metadata.Name field read directly from the untrusted package's zarf.yaml manifest. Although Metadata.Name is validated against a regex on package creation, an attacker can unarchive a package to modify the Metadata.Name field to contain path traversal sequences such as ../../etc/cron.d/malicious or absolute paths like /home/user/.ssh/authorized_keys, along with the corresponding files inside SBOMS.tar. This allows writing attacker-controlled content to arbitrary filesystem locations within the permissions of the user running the inspect command. This issue has been fixed in version 0.74.2.

Affected products

VendorProductAffectedFixed
zarf-dev zarf >= 0.23.0, < 0.74.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/defenseunicorns/zarf >= 0.23.0 — GO-2026-5542
Go github.com/zarf-dev/zarf >= 0.23.0, < 0.74.2 0.74.2 GHSA-pj97-4p9w-gx3q
Go github.com/zarf-dev/zarf >= 0.37.0, < 0.74.2 0.74.2 GO-2026-5542

Advisories 1

References