Advisory

GO-2026-5542

Also known as: CVE-2026-40090, GHSA-pj97-4p9w-gx3q

Summary

Path traversal via malicious package name in github.com/zarf-dev/zarf

Details

A path traversal vulnerability in Zarf allows an attacker to write arbitrary files on the host system by providing a malicious package name in the package metadata. This occurs when Zarf generates SBOM or documentation outputs, or when creating a package, as it fails to properly sanitize the package name before using it in a file path.

Severity

Not rated by the source.

Dates

Published
2026-07-23 16:32 UTC
Modified
2026-07-23 17:00 UTC

Affected packages and fixes

github.com/defenseunicorns/zarf

Go · All systems

Affected

  • introduced 0.23.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/zarf-dev/zarf

Go · All systems

Affected

  • introduced 0.37.0, fixed 0.74.2 (semver)

Fixed versions

0.74.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences