CVE-2026-54174
nicheMissing data-section hash verification in Apko/melange allows package content tampering
Apko (prior to 1.2.9, as bundled/used with melange prior to 0.50.4) verified only the control section hash of apk packages (e.g., .PKGINFO) against the signed APKINDEX, but never verified the data section hash covering the actual package files that get installed. An attacker positioned on the package fetch path — by compromising a mirror, poisoning a cache, or performing a man-in-the-middle attack — could substitute arbitrary file contents while the signature-based control hash check still passed. A successful attacker gains supply-chain compromise of build outputs: malicious files silently embedded into container images built with apko or packages built with melange. Anyone using vulnerable versions of these declarative build tools to produce apk-based images or packages is affected, particularly builds pulling from third-party mirrors or over untrusted networks. No public proof-of-concept is known and the flaw is not listed in CISA's KEV, so exploitation is not currently confirmed.
What to do: Upgrade apko to version 1.2.9 or later and melange to version 0.50.4 or later. Until patched, fetch packages only from trusted, TLS-protected official mirrors and purge any local/CI caches that could have been poisoned. Audit images and packages built with vulnerable versions for unexpected file contents, especially if third-party mirrors or untrusted networks were used.
| Chainguard apko | all versions prior to 1.2.9 (fixed in 1.2.9) |
| Chainguard melange | all versions prior to 0.50.4 (fixed in 0.50.4) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
melange allows users to build apk packages using declarative pipelines. Apko prior to version 1.2.9, corresponding to melange prior to version 0.50.4, 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. Apko version 1.2.9 and melange version 0.50.4 contain a fix.
- Weakness
- CWE-345, CWE-354
- Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
In the news0 stories
No ingested article mentions this CVE yet.