Security mailing lists by PureSourceCode

CVE-2026-40090

HIGH 7.1CVSS 3.1

Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write

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.

Published
15 Apr 2026
Last modified
23 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-22
Also known as
GHSA-pj97-4p9w-gx3qGO-2026-5542
Sources
NVDJSONOSV GHSA-pj97-4p9w-gx3qJSONOSV GO-2026-5542JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
OSV GitHub CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD lfprojects zarf
cpe:2.3:a:lfprojects:zarf:*:*:*:*:*:*:*:*
>= 0.23.0, < 0.74.2 0.74.2
OSV Go github.com/zarf-dev/zarf >= 0.23.0, < 0.74.2 0.74.2
OSV Go github.com/defenseunicorns/zarf >= 0.23.0
OSV Go github.com/zarf-dev/zarf >= 0.37.0, < 0.74.2 0.74.2

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 15 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jul 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.