CVE-2026-40090: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zarf-dev zarf
Zarf versions 0. 23. 0 through 0. 74. 1 contain a path traversal vulnerability in the 'zarf package inspect sbom' and 'zarf package inspect documentation' subcommands. An attacker can manipulate the Metadata. Name field in a package's manifest to include path traversal sequences or absolute paths, causing arbitrary file writes within the permissions of the user running the command. This vulnerability allows overwriting files at arbitrary locations on the filesystem. The issue is fixed in version 0. 74.
AI Analysis
Technical Summary
Zarf is a Kubernetes package manager with versions 0.23.0 to 0.74.1 vulnerable to CWE-22 path traversal. The vulnerability arises because the output file paths in certain inspect subcommands are constructed by joining a user-controlled output directory with the Metadata.Name field from the package manifest, which can be tampered with after package creation. Despite initial regex validation, an attacker can modify Metadata.Name to include '../' sequences or absolute paths, enabling arbitrary file writes with the privileges of the user running the inspect command. This can lead to overwriting critical files on the host system. The vulnerability is addressed in version 0.74.2.
Potential Impact
An attacker who can supply or modify a package can cause the 'zarf package inspect sbom' or 'zarf package inspect documentation' commands to write files to arbitrary locations on the filesystem. This can lead to unauthorized modification of files, potentially enabling further compromise depending on the user's privileges. There is no indication of confidentiality or availability impact beyond the integrity impact of arbitrary file writes. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to zarf version 0.74.2 or later, where this path traversal vulnerability has been fixed. Until upgrading, avoid running the vulnerable inspect subcommands on untrusted packages or in environments where package contents cannot be fully trusted. Patch status is confirmed fixed in version 0.74.2.
CVE-2026-40090: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zarf-dev zarf
Description
Zarf versions 0. 23. 0 through 0. 74. 1 contain a path traversal vulnerability in the 'zarf package inspect sbom' and 'zarf package inspect documentation' subcommands. An attacker can manipulate the Metadata. Name field in a package's manifest to include path traversal sequences or absolute paths, causing arbitrary file writes within the permissions of the user running the command. This vulnerability allows overwriting files at arbitrary locations on the filesystem. The issue is fixed in version 0. 74.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Zarf is a Kubernetes package manager with versions 0.23.0 to 0.74.1 vulnerable to CWE-22 path traversal. The vulnerability arises because the output file paths in certain inspect subcommands are constructed by joining a user-controlled output directory with the Metadata.Name field from the package manifest, which can be tampered with after package creation. Despite initial regex validation, an attacker can modify Metadata.Name to include '../' sequences or absolute paths, enabling arbitrary file writes with the privileges of the user running the inspect command. This can lead to overwriting critical files on the host system. The vulnerability is addressed in version 0.74.2.
Potential Impact
An attacker who can supply or modify a package can cause the 'zarf package inspect sbom' or 'zarf package inspect documentation' commands to write files to arbitrary locations on the filesystem. This can lead to unauthorized modification of files, potentially enabling further compromise depending on the user's privileges. There is no indication of confidentiality or availability impact beyond the integrity impact of arbitrary file writes. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to zarf version 0.74.2 or later, where this path traversal vulnerability has been fixed. Until upgrading, avoid running the vulnerable inspect subcommands on untrusted packages or in environments where package contents cannot be fully trusted. Patch status is confirmed fixed in version 0.74.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T00:39:12.206Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ded57682d89c981f20b4b0
Added to database: 4/15/2026, 12:01:58 AM
Last enriched: 4/15/2026, 12:16:49 AM
Last updated: 4/15/2026, 1:11:04 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.