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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-14 · Modified: 2026-04-15
- Aliases: GHSA-pj97-4p9w-gx3q, GO-2026-5542
- Record: https://cvemate.com/vulnerability/CVE-2026-40090 · JSON: https://cvemate.com/vulnerability/CVE-2026-40090/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
- EPSS: 0.333%, percentile 28.56%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/defenseunicorns zarf (Go): ≥ 0.23.0 (No fix recorded)
- github.com/zarf-dev zarf (Go): ≥ 0.23.0, \< 0.74.2 \| ≥ 0.37.0, \< 0.74.2
- lfprojects zarf: ≥ 0.23.0, \< 0.74.2
- zarf-dev zarf: ≥ 0.23.0, \< 0.74.2

## References

- <https://github.com/zarf-dev/zarf/security/advisories/GHSA-pj97-4p9w-gx3q>
- <https://github.com/zarf-dev/zarf/pull/4793>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40090>
- <https://github.com/zarf-dev/zarf>

---

Data as of 2026-12-05T05:10:49.722Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
