{"schemaVersion":4,"id":"CVE-2026-40090","aliases":["GHSA-pj97-4p9w-gx3q","GO-2026-5542"],"status":"published","duplicateOf":null,"title":"Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write","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.","dates":{"published":"2026-04-14T23:46:18.804Z","modified":"2026-04-15T16:13:54.180Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","exploitability":7.2,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00333,"percentile":0.2856,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.01299999999999999,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.0032},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00333,"percentile":0.2856}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0032,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00402,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00333,"percentile":0.2856}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"github.com/defenseunicorns","product":"zarf","name":"github.com/defenseunicorns/zarf","label":"zarf","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/defenseunicorns/zarf","purlType":"golang","versions":[{"text":"≥ 0.23.0","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"range","start":"0.23.0","startInclusive":true,"end":null,"endInclusive":false}}],"versionsText":"≥ 0.23.0 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/zarf-dev","product":"zarf","name":"github.com/zarf-dev/zarf","label":"zarf","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/zarf-dev/zarf","purlType":"golang","versions":[{"text":"≥ 0.23.0, < 0.74.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.23.0","startInclusive":true,"end":"0.74.2","endInclusive":false}},{"text":"≥ 0.37.0, < 0.74.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.37.0","startInclusive":true,"end":"0.74.2","endInclusive":false}}],"versionsText":"≥ 0.23.0, < 0.74.2 | ≥ 0.37.0, < 0.74.2","eol":null,"hubHref":null},{"vendor":"lfprojects","product":"zarf","name":"zarf","label":"zarf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.23.0, < 0.74.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.23.0","startInclusive":true,"end":"0.74.2","endInclusive":false}}],"versionsText":"≥ 0.23.0, < 0.74.2","eol":null,"hubHref":"/vendor/lfprojects/zarf"},{"vendor":"zarf-dev","product":"zarf","name":"zarf","label":"zarf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.23.0, < 0.74.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.23.0","startInclusive":true,"end":"0.74.2","endInclusive":false}}],"versionsText":"≥ 0.23.0, < 0.74.2","eol":null,"hubHref":"/vendor/zarf-dev/zarf"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3q","label":"github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3q","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Patch","Vendor Advisory"]},{"url":"https://github.com/zarf-dev/zarf/pull/4793","label":"github.com/zarf-dev/zarf/pull/4793","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40090","label":"nvd.nist.gov/vuln/detail/CVE-2026-40090","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/zarf-dev/zarf","label":"github.com/zarf-dev/zarf","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21483-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21483-1"]},"timeline":[{"kind":"published","date":"2026-04-14T23:46:18.804Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-15T16:13:54.180Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,71],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00333,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-04-15T16:13:54.180Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_go","date":"2026-04-15T16:13:54.180Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-04-15T16:13:54.180Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-04-15T16:04:08.362Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00333,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:21:19.754Z","stale":false,"partial":false}}