{"cve":"CVE-2026-40090","nvd":{"published":"2026-04-15T04:17:43.310","modified":"2026-06-17T10:44:42.457","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","score":7.1},"cwes":["CWE-22"],"references":["https://github.com/zarf-dev/zarf/pull/4793","https://github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3q"],"products":["lfprojects:zarf"],"source":"nvd","synced_at":"2026-10-19T22:30:49.762551342+00:00"},"epss":{"cve":"CVE-2026-40090","score":0.0032,"percentile":0.2506,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pj97-4p9w-gx3q","url":"https://osv.dev/vulnerability/GHSA-pj97-4p9w-gx3q","summary":"Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write","modified":"2026-07-23T17:11:37.884533843Z","packages":[{"ecosystem":"Go","name":"github.com/zarf-dev/zarf","purl":"pkg:golang/github.com/zarf-dev/zarf","ranges":[">=0.23.0 <0.74.2"],"fixed":["0.74.2"]}]},{"id":"GO-2026-5542","url":"https://osv.dev/vulnerability/GO-2026-5542","summary":"Path traversal via malicious package name in github.com/zarf-dev/zarf","modified":"2026-07-23T17:00:24.617246673Z","packages":[{"ecosystem":"Go","name":"github.com/defenseunicorns/zarf","purl":"pkg:golang/github.com/defenseunicorns/zarf","ranges":[">=0.23.0"],"fixed":[]},{"ecosystem":"Go","name":"github.com/zarf-dev/zarf","purl":"pkg:golang/github.com/zarf-dev/zarf","ranges":[">=0.37.0 <0.74.2"],"fixed":["0.74.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}