---
id: CVE-2026-29049
title: melange allows users to build apk packages using declarative pipelines
summary: >-
  melange allows users to build apk packages using declarative pipelines. In
  version 0.40.5 and prior, melange update-cache downloads URIs from build
  configs via io.Copy without any size limit or HTTP client timeout
  (pkg/renovate/cache/cac…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'
cwe:
  - CWE-400
  - CWE-918
vendor: chainguard
product: melange
affected:
  - melange <= 0.40.5
published: '2026-03-06'
updated: '2026-07-07'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-29049'
references:
  - url: >-
      https://github.com/chainguard-dev/melange/commit/652ca5af08588f78e2d405e64b058fac8398d23f
    label: security-advisories@github.com
  - url: 'https://github.com/chainguard-dev/melange/pull/2379'
    label: security-advisories@github.com
  - url: 'https://github.com/chainguard-dev/melange/releases/tag/v0.43.4'
    label: security-advisories@github.com
  - url: >-
      https://github.com/chainguard-dev/melange/security/advisories/GHSA-7rp8-r62p-q6wc
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-29049'
  - url: 'https://github.com/chainguard-dev/melange'
tags:
  - nvd
  - osv
  - go
epss: 0.00392
epssPercentile: 0.30567
ingestedAt: '2026-07-07T14:53:19.314Z'
aliases:
  - GHSA-7rp8-r62p-q6wc
  - GO-2026-4588
ecosystem: go
patched:
  - chainguard.dev/melange 0.43.4
---

## Overview

melange allows users to build apk packages using declarative pipelines. In version 0.40.5 and prior, melange update-cache downloads URIs from build configs via io.Copy without any size limit or HTTP client timeout (pkg/renovate/cache/cache.go). An attacker-controlled URI in a melange config can cause unbounded disk writes, exhausting disk on the build runne. Version 0.43.4 contains a patch.

## Affected

- `melange <= 0.40.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-29049)

Affected packages:

- `chainguard.dev/melange < 0.43.4`

Patched in:

- `chainguard.dev/melange 0.43.4`

Source: https://osv.dev/vulnerability/GHSA-7rp8-r62p-q6wc
