
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-54174 is a incomplete package integrity verification vulnerability in Apko and Melange (Chainguard) that allows an attacker to substitute arbitrary package file contents during installation while bypassing integrity checks. Apko verified the control section hash (.PKGINFO, etc.) against the signed APKINDEX, but never verified the data section hash covering the actual installed files. This affects chainguard.dev/apko versions before 1.2.9 and chainguard.dev/melange versions before 0.50.4. The vulnerability was first published on June 3, 2026, and added to the GitHub Advisory Database on July 10, 2026. It carries a CVSS v3.1 base score of 8.3 (High) (GitHub Advisory).
The root cause is classified under CWE-345 (Insufficient Verification of Data Authenticity) and CWE-354 (Improper Validation of Integrity Check Value). APK packages consist of two sections: a control section (containing metadata like .PKGINFO) and a data section (containing the actual files to be installed). Apko validated the control section's hash against the signed APKINDEX, but omitted equivalent validation of the data section hash, meaning the cryptographic trust chain did not extend to the installed file contents. An attacker positioned to compromise a package mirror, poison a package cache, or perform a man-in-the-middle (MITM) attack on a package fetch could replace the data section with arbitrary malicious content while the control hash check continued to pass (GitHub Advisory, Melange Advisory).
Successful exploitation allows an unauthenticated attacker to install arbitrary malicious files on target systems under the guise of legitimate, integrity-verified packages. This results in high confidentiality, integrity, and availability impact with a changed scope, meaning the compromise can extend beyond the directly affected component to other system resources. Potential consequences include persistent backdoors, supply chain compromise, credential theft, and full system takeover of any host using Apko or Melange to install packages from a tampered source (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is 0.036% (11th percentile), indicating a currently low probability of exploitation within the next 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity — specifically, the ability to compromise a mirror, poison a cache, or perform a MITM attack — and user interaction (a package installation action must be triggered) (GitHub Advisory).
.PKGINFO, .SIGN.*) intact and unmodified.APKINDEX entry, causing the integrity check to pass..PKGINFO metadata; unexpected binaries or scripts in directories populated by recently installed packages; newly created setuid/setgid files or cron entries following a package installation.Upgrade chainguard.dev/apko to version 1.2.9 or later and chainguard.dev/melange to version 0.50.4 or later, which include fixes that verify the data section hash in addition to the control section hash. As interim mitigations, ensure packages are fetched exclusively over TLS-authenticated channels and consider using trusted, internally controlled mirrors rather than public ones. Pinning package sources and implementing out-of-band hash verification of installed files can provide additional defense-in-depth. Monitor package distribution infrastructure for signs of cache poisoning or MITM activity (GitHub Advisory, Melange Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."