Apko APK Package Verification Vulnerability Allows Arbitrary Package Installation

Vulnerability

A vulnerability in Apko versions prior to 1.2.7 allows for the installation of arbitrary packages into OCI container images. While Apko verifies the signature of the APKINDEX.tar.gz file, it fails to compare the checksums of individually downloaded .apk packages against those recorded in the signed index. This oversight enables an attacker to exploit compromised mirrors, HTTP repositories, or poisoned CDN caches to substitute package contents without detection. The issue has been patched in version 1.2.7.

Impact

Exploitation of this vulnerability could lead to the installation of malicious or unauthorized packages in container images, potentially causing harm when those images are deployed.

Reproduction

To reproduce this vulnerability, use Apko versions prior to 1.2.7 to build an OCI container image from APK packages. During the process, the application will download .apk files from a repository. If these packages are served by a compromised mirror or through an HTTP repository that has been poisoned, the downloaded packages can be manipulated to include arbitrary content. Apko will accept these tampered packages without any verification, as the checksum mismatch will go undetected.

Remediation

Users can upgrade to Apko version 1.2.7 or later, where this vulnerability has been fixed.

Added: May 9, 2026, 8:22 PM
Updated: May 9, 2026, 8:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
7.1
remediation
0.0
relevance
7.8
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.