CVE-2026-40090: Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write
Vulnerability summary
CVE-2026-40090 is a high (CVSS 7.1) vulnerability in lfprojects zarf. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 28.5% of scored vulnerabilities.
Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 14-04-2026PublishedVulnerability first disclosed.
- 15-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
- NVDNIST7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.32% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/defenseunicorns1 product
- zarf≥ 0.23.0 (No fix recorded)
Github.com/zarf-dev1 product
- zarf≥ 0.23.0, < 0.74.2 | ≥ 0.37.0, < 0.74.2
Lfprojects1 product
- zarf≥ 0.23.0, < 0.74.2
Zarf-dev1 product
- zarf≥ 0.23.0, < 0.74.2
4 vendors · 4 products
References
4 links- github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3qX Refsource CONFIRMWEBAdvisoryPatchVendor Advisory
- github.com/zarf-dev/zarfPACKAGE