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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | chainguard.dev/apko | All versions before 1.2.9 (fixed in 1.2.9) |
| Go | chainguard.dev/melange | All versions before 0.50.4 (fixed in 0.50.4) |