CVE-2026-54174: melange: Incomplete package integrity verification allows data section substitution
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.
Published Jul 10, 2026
Affected packages
chainguard.dev/apko
- Ecosystem
- Go
- Affected
- < 1.2.9
- Fixed in
- 1.2.9
- Check
go list -m chainguard.dev/apko
chainguard.dev/melange
- Ecosystem
- Go
- Affected
- < 0.50.4
- Fixed in
- 0.50.4
- Check
go list -m chainguard.dev/melange
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to xnox, egibs.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-42574
apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root
high7.5May 4, 2026CVE-2026-42575
apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitution possible)
high7.5May 4, 2026CVE-2026-42576
apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
medium6.5May 4, 2026CVE-2026-29050
melange has Path Traversal When Resolving External Pipelines via Unvalidated pipeline[].uses
medium6.1Apr 23, 2026CVE-2026-29051
melange has Path Traversal via .PKGINFO in --persist-lint-results
low3.3Apr 23, 2026CVE-2026-29049
`melange update-cache` has unbounded HTTP download that can exhaust disk in CI
medium4.3Mar 2, 2026
