Skip to main content

Chainguard melange EUVDEUVD-2026-25356

| CVE-2026-29051 LOW
Path Traversal (CWE-22)
2026-04-23 https://github.com/chainguard-dev/melange GHSA-q2pw-xx38-p64j
3.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft APK with malicious .PKGINFO path values
  2. Delivery
    Submit APK to melange-based CI pipeline
  3. Exploit
    Operator invokes melange with --persist-lint-results
  4. Execution
    melange reads unvalidated arch/pkgname from .PKGINFO
  5. Persist
    Path traversal writes JSON to arbitrary filesystem location
  6. Impact
    Clobber downstream JSON artifact

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

Exploitation requires three specific conditions to be met simultaneously. First, the targeted melange invocation must include the --persist-lint-results flag - this opt-in flag is off by default and must be explicitly passed to melange lint or melange build; deployments without this flag are entirely unaffected. Second, the attacker must be able to supply an APK whose .PKGINFO control file contains attacker-controlled arch or pkgname values with path traversal sequences (e.g., ../../path/to/target). Third, a human operator or automated pipeline must actively trigger the melange lint/build run against the malicious APK, satisfying the UI:R requirement. Exploitation is limited to writing or clobbering .json files reachable by the melange process's filesystem permissions - no code execution is achievable. The attack is non-automatable per SSVC because it depends on a human-triggered pipeline run.

Impact

Real-world risk is limited by several converging signals. EPSS is 0.02% (4th percentile), SSVC rates exploitation as 'none' and automability as 'no', and no public exploit or CISA KEV entry exists. The CVSS 3.1 score of 4.4 (Medium) reflects the constrained impact: no confidentiality loss, only partial integrity and availability impact, and no scope change. The most significant limiting factor is that --persist-lint-results is off by default - deployments that never pass this flag are entirely unaffected regardless of version. The attack is only realistic in CI/CD pipelines or build-as-a-service environments that lint third-party APKs with the flag enabled, which represents a narrow deployment scenario. Impact is limited to JSON file clobber, not arbitrary code execution. CVSS vector AV:L and UI:R are consistent with the description: exploitation requires a user to actively invoke melange with the flag against a malicious APK. The combination of niche product, off-by-default feature, no code execution, and no observed exploitation makes this a low operational priority for most organizations despite the Medium CVSS.

Exploit ScenarioDerived

An attacker submits a crafted APK to a CI pipeline that runs melange lint --persist-lint-results against third-party packages. The APK's .PKGINFO contains a pkgname field with a path traversal sequence such as ../../config/target, causing melange to write the lint JSON report to <out-dir>/../../config/target.json, overwriting a legitimate configuration artifact used by a downstream pipeline stage.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Path traversal in Chainguard melange's --persist-lint-results feature allows an attacker who controls the contents of a processed APK to write attacker-influenced JSON files to arbitrary filesystem locations reachable by the melange process. Affected versions span v0.32.0 through v0.43.3; the root cause is that arch and pkgname values from the APK's .PKGINFO control file were used unsanitized in output path construction. No direct code execution is possible, but the write primitive can clobber other JSON artifacts on the build host. No public exploit code exists and CISA KEV does not list this vulnerability.

RemediationAI

Upgrade to melange v0.43.4 or later, which validates arch and pkgname against path traversal sequences before file path construction (https://github.com/chainguard-dev/melange/commit/84f3b450ce6e472c4abb8dc4c26d0ce8ac1259ac). If an immediate upgrade is not possible, the primary workaround is to remove the --persist-lint-results flag from all melange lint and melange build invocations - this eliminates the vulnerable code path entirely with no functional loss for pipelines that do not consume the JSON lint output. As an additional defense-in-depth measure, run melange as a low-privileged user account so that even if path traversal is exploited, the clobber radius is limited to files writable by that user. Confining the melange process to an isolated working directory (e.g., via a container or chroot) further restricts which JSON files could be overwritten. Do not lint APKs with untrusted .PKGINFO contents until the patch is applied.

Affected VersionsENISA

melange 0.32.0, < 0.43.4

Affected Packages

go chainguard.dev/melange fix: 0.43.4
euvd melange_0_32_0 fix: 0.43.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

melange (pkg:go/chainguard.dev/melange) is a Chainguard-maintained Go tool for building Alpine-compatible APK packages and running lint checks on them. The vulnerable code path is in pkg/linter/results.go: when --persist-lint-results is passed, melange calls saveLintResults, which constructs the output file path by joining --out-dir with the arch and pkgname fields extracted from the APK's .PKGINFO control file without validating those fields for .. sequences, /, or filepath.Separator. This is a textbook CWE-22 (Path Traversal) pattern - unsanitized attacker-controlled data used in a filesystem path join. The fix (commit 84f3b45, melange v0.43.4) adds a containsPathTraversal helper that rejects any arch or pkgname containing .., /, or the platform's filepath.Separator before the path is assembled.

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

NVD PRIMARY 3.3 LOW
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 4.4 MEDIUM

Local attack vector because exploitation occurs on the melange host; no confidentiality impact; integrity and availability each low due to JSON-only clobber without code execution.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
Severity Changed
Oct 26, 2026 - 22:25 NVD
MEDIUM LOW
CVSS changed
Oct 26, 2026 - 22:25 NVD
4.4 (MEDIUM) 3.3 (LOW)
Patch released
Apr 23, 2026 - 22:15 nvd
Patch available
CVE Published
Apr 23, 2026 - 21:54 nvd
MEDIUM 4.4

DescriptionNVD

Impact

melange lint --persist-lint-results (opt-in flag, also usable via melange build --persist-lint-results) constructs output file paths by joining --out-dir with the arch and pkgname values read from the .PKGINFO control file of the APK being linted. In affected versions these values were not validated for path separators or .. sequences, so an attacker who can supply an APK to a melange-based lint/build pipeline (e.g. CI that lints third-party APKs, or build-as-a-service) could cause melange to write lint-<pkgname>-<pkgver>-r<epoch>.json to an arbitrary .json path reachable by the melange process. The written file is a JSON lint report whose content is partially attacker-influenced. There is no direct code-execution path, but the write can clobber other JSON artifacts on the filesystem. The issue only affects deployments that explicitly pass --persist-lint-results; the flag is off by default.

Patches

Fixed in melange v0.43.4 by validating arch and pkgname for .., /, and filepath.Separator before path construction in pkg/linter/results.go (commit 84f3b45).

Workarounds

Do not pass --persist-lint-results when linting or building APKs whose .PKGINFO contents are not fully trusted. Running melange as a low-privileged user and confining writes to an isolated directory also limits impact.

Credits

melange thanks Oleh Konko (@1seal from 1seal.org) for discovering and reporting this issue.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Prevalence
Low
niche APK build tool used in Chainguard/Alpine-derivative pipelines
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor 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 LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

16
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
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.

Vendor StatusVendor

SUSE

Severity: Moderate
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