Description
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.
Published: 2026-03-06
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Melative pipelines. In versions before 0.40.5, the update-cache command downloads URIs from build configurations using io.Copy without imposing a size limit or HTTP client timeout. An attacker‑controlled URI in a melange config can therefore cause unbounded disk writes, exhausting disk on the CI runner during a build. The vulnerability corresponds to CWE‑400 and CWE‑918. This description has been updated to include additional details. The issue is fixed in version 0.43.4.

Affected Systems

Chainguard’s melange, version 0.40.5 and earlier, are affected. The flaw resides in the pkg module. Any environment that runs melange update-cache with a build configuration containing attacker‑supplied download URLs is exposed.

Risk and Exploitability

The CVSS score is 4.3 and the EPSS score is < likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog and no exploitation reports are documented in the CVE data. The likely attack vector is remote delivery via a compromised or malicious build definition. An build failures and resource denial for other jobs.

Generated by OpenCVE AI on July 23, 2026 at 18:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official melange patch by upgrading to version 0.43.4 or later.
  • Implement strict validation of download URLs in melange configurations, allowing only trusted domains or IPs.
  • Enforce disk quotas or monitor available disk space in the CI environment, triggering alerts before exhaustion occurs.
  • Configure HTTP client timeouts and size limits for downloads or use a reverse proxy that enforces download size constraints.

Generated by OpenCVE AI on July 23, 2026 at 18:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-7rp8-r62p-q6wc `melange update-cache` has unbounded HTTP download that can exhaust disk in CI
History

Tue, 07 Jul 2026 14:00:00 +0000

Type Values Removed Values Added
Description 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. There is no known patch publicly available. 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.
References

Tue, 10 Mar 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Chainguard
Chainguard melange
CPEs cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*
Vendors & Products Chainguard
Chainguard melange

Mon, 09 Mar 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 06 Mar 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Chainguard-dev
Chainguard-dev melange
Vendors & Products Chainguard-dev
Chainguard-dev melange

Fri, 06 Mar 2026 07:15:00 +0000

Type Values Removed Values Added
Description 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. There is no known patch publicly available.
Title melange: unbounded HTTP download in `melange update-cache` can exhaust disk in CI
Weaknesses CWE-400
CWE-918
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}


Subscriptions

Chainguard Melange
Chainguard-dev Melange
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-07T13:10:28.323Z

Reserved: 2026-03-03T17:50:11.243Z

Link: CVE-2026-29049

cve-icon Vulnrichment

Updated: 2026-03-09T20:00:14.380Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-06T07:16:02.093

Modified: 2026-06-17T10:29:30.467

Link: CVE-2026-29049

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T18:00:17Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-918

    Server-Side Request Forgery (SSRF)