ADVISORIES

GitHub Advisory Database

GHSA-fpg8-7664-jc5q

melange: Incomplete package integrity verification allows data section substitution

Details

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.

Affected packages

EcosystemPackageAffected versions
Gochainguard.dev/apko
All versions before 1.2.9 (fixed in 1.2.9)
Gochainguard.dev/melange
All versions before 0.50.4 (fixed in 0.50.4)

References