CVE-2026-54174
Wolfi vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify targets using Apko (versions < 1.2.9) or Melange (versions < 0.50.4) to build or install Alpine-based container images, particularly in CI/CD pipelines that pull packages from public or shared mirrors.
  2. Gain a position for tampering: Compromise a package mirror, poison a shared package cache (e.g., a proxy cache layer), or establish a MITM position on the network path between the target and the package repository (e.g., via ARP spoofing, DNS poisoning, or BGP hijacking).
  3. Craft a malicious package: Obtain a legitimate APK package. Replace the data section (the tar archive of actual files) with a malicious payload (e.g., a backdoored binary or a web shell), while leaving the control section (.PKGINFO, .SIGN.*) intact and unmodified.
  4. Serve the tampered package: Deliver the modified package to the victim when Apko or Melange requests it. The control section hash will match the signed APKINDEX entry, causing the integrity check to pass.
  5. Achieve code execution: The malicious files from the substituted data section are installed on the target system. Depending on the payload, this can result in remote code execution, persistence, or further lateral movement within the environment (GitHub Advisory, Melange Advisory).

Indicators of compromise

  • Network: Unexpected or anomalous DNS resolutions or HTTP requests to package mirror domains from build systems; TLS certificate mismatches or unexpected certificate authorities observed during package fetches; unusual outbound connections from build hosts after package installation.
  • File System: Installed package files whose checksums do not match those listed in the package's own .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.
  • Logs: Build or CI/CD logs showing successful package installation from an unexpected mirror or IP address; discrepancies between the expected and actual file hashes logged during package verification steps (if additional external verification is in place).
  • Process: Unexpected processes spawned shortly after package installation in containerized build environments; unusual network connections initiated by newly installed binaries.

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-89259CRITICAL9.3
  • Wolfi logoWolfi
  • hugo
NoYesSep 11, 2026
CVE-2026-89258CRITICAL9.3
  • Wolfi logoWolfi
  • hugo
NoYesSep 11, 2026
CVE-2026-54174HIGH8.3
  • Wolfi logoWolfi
  • tw
NoYesSep 11, 2026
CVE-2026-49838MEDIUM5.9
  • Wolfi logoWolfi
  • cilium-cli
NoYesSep 10, 2026
CVE-2026-89092MEDIUM4.2
  • Wolfi logoWolfi
  • glibc
NoYesSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management