CVE-2026-40090

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

HIGH
7.1
CVSS Score
Published: April 14, 2026 at 11:46 PM UTC
Updated: June 17, 2026 at 10:44 AM UTC
2 products affected across 2 vendorsZarfZarf

Using zarf by zarf-dev?

Get instant alerts when new vulnerabilities affect zarf - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.23.0 ≤ v < 0.74.2
Affected range stops below 0.74.2, so it looks safe — our inference, not a vendor statement
v < 0.74.2
Affected range stops below 0.74.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

x_refsource_CONFIRMPatchVendor Advisory
Source: cverecord
https://github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3q
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/zarf-dev/zarf/pull/4793

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.1HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card