Skip to main content

Suse CVE-2026-40090

HIGH
Path Traversal (CWE-22)
2026-04-14 https://github.com/zarf-dev/zarf GHSA-pj97-4p9w-gx3q
7.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious Zarf package with traversal in Metadata.Name
  2. Delivery
    Publishes to OCI registry or shares via social engineering
  3. Exploit
    Victim runs 'zarf package inspect sbom' on untrusted package
  4. Execution
    Zarf extracts files using unsanitized path
  5. Persist
    Attacker-controlled content written to sensitive location (SSH keys, cron jobs, shell profiles)
  6. Impact
    Attacker 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 zarf package inspect sbom or zarf package inspect documentation on untrusted package. Affects Zarf versions before v0.74.2.

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go github.com/defenseunicorns/zarf no fix
go github.com/zarf-dev/zarf fix: 0.74.2

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

GitHub Advisory PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch released
Apr 14, 2026 - 22:46 nvd
Patch available
CVE Published
Apr 14, 2026 - 22:32 nvd
HIGH 7.1

DescriptionGitHub 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:

go
outputPath := filepath.Join(o.outputDir, pkgLayout.Pkg.Metadata.Name)
err = pkgLayout.GetSBOM(ctx, outputPath)

Documentation inspection (line 1219):

go
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

Why It Matters

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/.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 85% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

pkg:go/github.com_zarf-dev_zarf

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy