Suse
CVE-2026-40090
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious Zarf package with traversal in Metadata.Name
-
DeliveryPublishes to OCI registry or shares via social engineering
-
ExploitVictim runs 'zarf package inspect sbom' on untrusted package
-
ExecutionZarf extracts files using unsanitized path
-
PersistAttacker-controlled content written to sensitive location (SSH keys, cron jobs, shell profiles)
-
ImpactAttacker gains code execution on subsequent system event
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote attacker crafts malicious Zarf package with path traversal in Metadata.Name field. Victim must run |
| Impact | Real-world risk is moderate despite the High CVSS score. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L) indicates low attack complexity and network deliverability, but mandatory user interaction significantly limits exploitation scope. The attacker cannot force victims to inspect malicious packages - exploitation requires social engineering to convince administrators to run inspection commands on untrusted archives. Impact is constrained to user-context file writes (no privilege escalation per S:U), though realistic targets include SSH authorized_keys, cron jobs, bashrc profiles, or application configurations that could lead to code execution on subsequent system events. The lack of confidentiality impact (C:N) means this cannot be chained for data exfiltration without additional vulnerabilities. SSVC assessment: exploitation status is proof-of-concept (detailed in advisory), automatable is no (requires user interaction), technical impact is partial (file write within user permissions). Priority should be high for organizations using Zarf in CI/CD pipelines or allowing package inspection from public OCI registries, but lower for isolated environments with strict package source controls. The availability of a vendor patch in v0.74.2 and low exploitation complexity make this a clear upgrade candidate rather than relying on workarounds. |
| Exploit ScenarioDerived | An attacker publishes a weaponized Zarf package to a public OCI registry or shares it via a supply chain compromise scenario. The malicious package appears legitimate but contains a modified zarf.yaml where Metadata.Name is set to '../../home/victim/.ssh/authorized_keys' and the SBOM archive contains the attacker's SSH public key. When a DevOps engineer runs 'zarf package inspect sbom oci://malicious-registry/trojan-package' to review the package contents before deployment, Zarf writes the attacker's SSH key to the engineer's authorized_keys file. The attacker subsequently gains SSH access to the engineer's workstation or jump host using their private key, bypassing password authentication and potentially accessing production Kubernetes clusters or CI/CD secrets. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 15, 2026
Path traversal in Zarf package inspection commands enables arbitrary file write when processing malicious packages. Attackers can craft Zarf packages with traversal sequences in the Metadata.Name field (e.g., '../../etc/cron.d/malicious'), bypassing input validation to write attacker-controlled content to sensitive system locations when users run 'zarf package inspect sbom' or 'zarf package inspect documentation'. Fixed in version v0.74.2. CVSS 7.1 (High) with network attack vector but requires user interaction. No public exploit identified at time of analysis, though exploitation complexity is low as attackers only need to modify zarf.yaml and sboms.tar in a package archive.
RemediationAI
Upgrade to Zarf version v0.74.2 or later, which includes the fix from pull request #4793 that implements proper path sanitization for the Metadata.Name field during package inspection operations. Organizations can obtain the patched version from the GitHub repository at https://github.com/zarf-dev/zarf. Until upgrade is possible, implement the vendor-recommended workaround of avoiding inspection of unsigned packages and only processing packages from trusted, verified sources. Establish organizational policies requiring package signature verification before inspection. For high-security environments, consider restricting the 'zarf package inspect' commands to dedicated sandboxed systems with limited file system permissions, or implement additional wrapper scripts that validate package sources before allowing inspection. Review systems where untrusted packages may have been inspected prior to patching for unexpected file modifications in user home directories (.ssh/authorized_keys, .bashrc), cron directories, and application configuration paths.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Zarf is a Kubernetes deployment tool (github.com/zarf-dev/zarf) that packages applications into portable archives. The vulnerability stems from improper path sanitization (CWE-22) in two inspection subcommands. While package creation validates Metadata.Name against regex '^[a-z0-9][a-z0-9\-]*$', the inspection flow reads this field directly from untrusted zarf.yaml manifests without re-validation. The code uses filepath.Join() to combine user-specified output directories with the unsanitized package name before extracting SBOM or documentation files. Because filepath.Join() does not neutralize path traversal sequences like '../' or absolute paths, an attacker who unarchives a legitimate package, modifies the Metadata.Name field to contain traversal sequences, recalculates checksums, and re-archives can control both the destination path and file content. This affects the Go package ecosystem (pkg:go) specifically for users inspecting packages from untrusted sources including OCI registries.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Impact
This vulnerability impacts users of zarf package inspect sbom or zarf package inspect documentation on untrusted packages.
Patches
#4793, now fixed in version v0.74.2
Workarounds
Avoid inspecting unsigned packages
Description
The package inspect sbom and package inspect documentation subcommands construct output file paths by joining a user-controlled output directory with the package's Metadata.Name field, which is attacker-controlled data read from the package archive. The Metadata.Name field is validated against a regex on create, ^[a-z0-9][a-z0-9\-]*$, however a malicious user could unarchive a package to change the .Metadata.Name field and the files inside the SBOMS.tar. This would lead to arbitrary file write in a location of the attackers choosing.
Neither location sanitizes or validates the package name before using it in the file path.
SBOM inspection:
outputPath := filepath.Join(o.outputDir, pkgLayout.Pkg.Metadata.Name)
err = pkgLayout.GetSBOM(ctx, outputPath)Documentation inspection (line 1219):
outputPath := filepath.Join(o.outputDir, fmt.Sprintf("%s-documentation", pkgLayout.Pkg.Metadata.Name))
return pkgLayout.GetDocumentation(ctx, outputPath, o.keys)pkgLayout.Pkg.Metadata.Name is read directly from the untrusted package's zarf.yaml manifest. An attacker can craft a malicious Zarf package where Metadata.Name contains path traversal sequences or root paths such as ../../etc/cron.d/malicious or /home/user/.ssh/authorized_keys.
CVSS Explainations
Attack Vector
Verdict: Network A malicious package could be published to OCI and inspected directly with zarf package inspect sbom oci://<bad-package>
Attack Complexity
Verdict: Low It is not complicated to make and publish a malicious package. The Attacker only needs to edit the zarf.yaml and sboms.tar then edit the checksums.
Privileges Required
Verdict: None The attacker is relying on the runner of zarf package inspect sbom|documentation and needs no other privileges.
User Interaction
Verdict: Required The user must run the inspect command
Scope
Verdict: Unchanged The vulnerability operates entirely within the permissions of the user running zarf package inspect. The file write can't escape the privilege boundary of that user
Confidentiality
Verdict: None This is an arbitrary file write vulnerability. The attacker can place or overwrite files on the filesystem but the vulnerability does not provide any mechanism to read or exfiltrate data from the target system.
Integrity
Verdict: High The attacker controls both the file path (via Metadata.Name) and the file content (via the SBOM or documentation files inside the archive). This allows writing attacker-controlled content to arbitrary locations on the filesystem, limited only by the permissions of the user running the inspect command. Realistic exploitation includes writing SSH authorized_keys, cron jobs, or shell profiles.
Availability
Verdict: Low The vulnerability does not directly target service availability. However, an attacker could overwrite files that cause system disruption.
Executive ViewAI
Zarf versions prior to v0.74.2 contain a path traversal vulnerability in package inspection commands that allows attackers to write arbitrary files to sensitive system locations when users process malicious packages. This affects any organization using Zarf for container image management and supply chain operations, with potential impact to system integrity and privilege escalation if files are written to directories like /etc/cron.d/.
Apply vendor patch. Until patched: (1) Restrict zarf package inspect operations to trusted package sources only; (2) disable zarf package inspect sbom and zarf package inspect documentation commands via access controls if not required for operations; (3) run Zarf tooling in isolated environments with minimal file system permissions to reduce blast radius of arbitrary writes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)GitHub Advisory
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-pj97-4p9w-gx3q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB