# CVE-2026-40090: Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-04-14T22:32:53.000Z
- Modified: 2026-07-23T17:11:37.884Z
- Also known as: GHSA-pj97-4p9w-gx3q, GO-2026-5542
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- zarf-dev zarf: >= 0.23.0, < 0.74.2
- github.com/zarf-dev/zarf (Go): from 0.23.0 before 0.74.2; from 0.37.0 before 0.74.2
- github.com/defenseunicorns/zarf (Go): from 0.23.0
- lfprojects zarf: from 0.23.0 before 0.74.2

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`

## References

- <https://github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3q> (advisory, patch, vendor-advisory, web)
- <https://github.com/zarf-dev/zarf/pull/4793> (fix, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40090> (advisory)
- <https://github.com/zarf-dev/zarf> (package)

## Sources

- CVE List: [CVE-2026-40090](https://www.cve.org/CVERecord?id=CVE-2026-40090), CVE Terms of Use, modified 2026-04-15
- GitHub Advisory Database: [GHSA-pj97-4p9w-gx3q](https://github.com/advisories/GHSA-pj97-4p9w-gx3q), CC-BY-4.0, modified 2026-07-23
- Go Vulnerability Database: [GO-2026-5542](https://pkg.go.dev/vuln/GO-2026-5542), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-40090](https://nvd.nist.gov/vuln/detail/CVE-2026-40090), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-40090 · Whole record: https://cve.day/CVE-2026-40090.json · Rebuilt by cve.day 2026-11-25T22:59:18.814Z
