Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-29050

MEDIUM 6.1EPSS 5%

melange has Path Traversal When Resolving External Pipelines via Unvalidated pipeline[].uses

Also known as GHSA-98f2-w9h9-7fp9, GO-2026-5279

Mitigation

  • Upgrade chainguard.dev/melange to 0.43.4 or later.

Who should check

  • Projects that depend on Go package chainguard.dev/melange (>= 0.32.0, < 0.43.4)
  • Anyone running chainguard-dev melange >= 0.32.0, < 0.43.4

Vulnerability facts

Affected
chainguard.dev/melange >= 0.32.0, < 0.43.4
Fixed in
0.43.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-22
Published
Modified

Description

melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, an attacker who can influence a melange configuration file — for example through pull-request-driven CI or build-as-a-service scenarios — could set `pipeline[].uses` to a value containing `../` sequences or an absolute path. The `(*Compiled).compilePipeline` function in `pkg/build/compile.go` passed `uses` directly to `filepath.Join(pipelineDir, uses + ".yaml")` without validating the value, so the resolved path could escape each `--pipeline-dir` and read an arbitrary YAML-parseable file visible to the melange process. Because the loaded file is subsequently interpreted as a melange pipeline and its `runs:` block is executed via `/bin/sh -c` in the build sandbox, this additionally allowed shell commands sourced from an out-of-tree file to run during the build, bypassing the review boundary that normally covers the in-tree pipeline definition. The issue is fixed in melange v0.43.4 via commit 5829ca4. The fix rejects `uses` values that are absolute paths or contain `..`, and verifies (via `filepath.Rel` after `filepath.Clean`) that the resolved target remains within the pipeline directory. As a workaround, only run `melange build` against configuration files from trusted sources. In CI systems that build user-supplied melange configs, gate builds behind manual review of `pipeline[].uses` values and reject any containing `..` or leading `/`.

Affected and fixed versions

Package / productAffectedFixedSource
Go chainguard.dev/melange>= 0.32.0, < 0.43.40.43.4osv
chainguard-dev melange>= 0.32.0, < 0.43.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-29050. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-29050.md
Affected: chainguard.dev/melange >= 0.32.0, < 0.43.4
Fixed in: 0.43.4

Steps:
1. Search this machine and project for chainguard.dev/melange (Go), chainguard-dev melange: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-29050 being exploited?

There is no confirmed exploitation: CVE-2026-29050 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-29050?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-29050?

chainguard.dev/melange >= 0.32.0, < 0.43.4.

Is there a fix for CVE-2026-29050?

Yes. Fixed in 0.43.4. Upgrade chainguard.dev/melange to 0.43.4 or later.

How do I check if I'm affected by CVE-2026-29050?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors