GitHub Advisoryadvisory · Go

GHSA-fpg8-7664-jc5q melange: Incomplete package integrity verification allows data section substitution

HIGH Published 2026-07-10 Modified 2026-07-10 Official page ↗
Aliases
CVE-2026-54174
Ecosystem
Go
Packages
chainguard.dev/apko, chainguard.dev/melange
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weaknesses
CWE-345, CWE-354
Reviewed
2026-07-10

Affected packages

• Go chainguard.dev/apko: < 1.2.9 → fixed in 1.2.9 • Go chainguard.dev/melange: < 0.50.4 → fixed in 0.50.4

Description

Previously, Apko verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the data section hash (the actual package files that get installed). An attacker who could compromise a mirror, poison a cache, or MITM a package fetch could substitute arbitrary file contents while the control hash check still passed.

Related

Alias · CVE (1)

  • CVE-2026-54174 melange allows users to build apk packages using declarative pipelines. vulnerability

Weakness · CWE (2)

  • CWE-345 Insufficient Verification of Data Authenticity weakness
  • CWE-354 Improper Validation of Integrity Check Value weakness

References