apko CVE-2026-42575
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPosition on network path
-
DeliveryIntercept APK download request
-
ExploitRespond with malicious package file
-
Executionapko skips checksum validation
-
PersistMalicious package installed in image
-
ImpactContainer deployed to production
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Attacker must control package download responses during apko image build. Specific attack paths: (1) Compromise of Alpine package mirror infrastructure used by apko - requires breach of mirror server or DNS hijacking to redirect repository URLs. (2) Use of HTTP (not HTTPS) APK repositories - allows active network MitM to intercept and modify responses; requires network position between apko build host and repository. (3) Poisoning of CDN cache layers serving APK packages - requires CDN cache manipulation techniques or compromised CDN edge nodes. (4) Internal network attacks if apko build hosts use internal APK mirrors without end-to-end integrity checks. Attack is LIMITED by: whether apko enforces HTTPS for repository access (not confirmed from available data), whether Alpine repositories are properly configured with certificate pinning, and whether build environments use private mirrors vs. public infrastructure. No special apko configuration or non-default feature enablement required - vulnerability is present in default package installation flow. |
| Impact | Real-world risk is HIGH for specific deployment scenarios despite moderate CVSS base score. CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates remote exploitation with low complexity and no authentication, but the Integrity-only impact (I:H/C:N/A:N) understates supply chain risk. Attack requires network position to intercept package downloads - achievable via compromised mirrors (Alpine has community mirrors), HTTP repositories (not HTTPS), or CDN cache poisoning. The 'Tags: Information Disclosure' metadata appears incorrect; this is supply chain compromise, not information disclosure. No CISA KEV listing and lack of public POC suggest limited exploitation to date, but the attack technique is well-understood in supply chain security. SSVC factors: Exploitation=POC (technique is straightforward for positioned attackers), Automatable=No (requires MitM position), Technical Impact=Total (arbitrary code in container images). Priority depends heavily on whether apko is used with HTTP repositories or untrusted mirrors - if all sources are HTTPS with proper certificate validation, attack surface is significantly reduced. Critical uncertainty: does apko enforce HTTPS for repository access, or allow HTTP? This detail determines whether attack requires active MitM or just compromised infrastructure. |
| Exploit ScenarioDerived | Attacker compromises an Alpine package mirror or poisons a CDN cache serving APK packages. When apko builds a container image and requests packages (e.g., curl-8.5.0-r0.apk), the attacker's infrastructure responds with a malicious APK containing backdoored binaries but preserving the original filename. Because apko never compares the downloaded file's checksum against the signed APKINDEX value, the malicious package is silently accepted and installed into the container image. The resulting image deploys to production with compromised packages, granting the attacker code execution in all containers built during the attack window. No user interaction or authentication required; exploitation is fully automated once network position is achieved. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Package substitution in Chainguard apko allows network-positioned attackers to inject arbitrary APK packages into container images during build. apko verifies APKINDEX.tar.gz signatures but fails to validate individual downloaded .apk packages against signed index checksums, accepting mismatched packages silently. Attackers controlling download responses (compromised mirrors, HTTP repositories, poisoned CDN caches) can replace legitimate packages with malicious ones. Fixed in version 1.2.7. CVSS 7.5 with network vector and no authentication required. EPSS data not available; no CISA KEV listing indicates targeted rather than widespread exploitation at time of analysis.
RemediationAI
Vendor-released patch: version 1.2.7 implements the missing checksum comparison. Upgrade apko to 1.2.7 or later immediately via 'go install chainguard.dev/apko@v1.2.7' or update container image builder pipelines using apko:1.2.7 image. Refer to advisory at https://github.com/chainguard-dev/apko/security/advisories/GHSA-hcwr-pq9g-rq3m for release details. For environments unable to upgrade immediately: enforce HTTPS-only APK repositories with strict certificate validation to prevent MitM attacks (requires repository configuration changes and may break compatibility with HTTP-only mirrors). Use Alpine's official mirrors only, avoiding third-party or regional mirrors until patched. Scan existing apko-built images for integrity: compare installed package checksums against signed APKINDEX from trusted source, though this requires manual verification scripting. Rebuild all container images with patched apko 1.2.7 to ensure integrity. Note: HTTPS mitigation reduces but does not eliminate risk if CDN or mirror infrastructure is compromised at origin.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
apko is a Go-based tool from Chainguard for building Alpine Linux-based container images from APK packages (pkg:go/chainguard.dev_apko). Alpine's package manager uses APKINDEX.tar.gz files containing package metadata and SHA checksums, cryptographically signed to ensure integrity. The vulnerability stems from incomplete implementation of the verification chain: apko correctly validates the APKINDEX.tar.gz signature and parses package checksums via ChecksumString(), and even computes control hashes for downloaded .apk files, but the critical comparison step in getPackageImpl() is missing. This is a CWE-345 (Insufficient Verification of Data Authenticity) flaw where the authentication mechanism exists but isn't fully enforced. The parsed checksum and computed hash exist in memory but are never compared, allowing packages with mismatched hashes to pass validation. This breaks the trust chain between the signed index and actual installed packages.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Primary rating from Vendor (https://github.com/chainguard-dev/apko).
CVSS VectorVendor: https://github.com/chainguard-dev/apko
DescriptionCVE.org
apko verifies the signature on APKINDEX.tar.gz but never compares individually downloaded .apk packages against the checksum recorded in the signed index. The checksum is parsed and available via ChecksumString(), and the downloaded package control hash is computed, but the two values are never compared in getPackageImpl(). Mismatched packages are silently accepted. An attacker who can substitute download responses (compromised mirror, HTTP repository, poisoned CDN cache) can install arbitrary packages into built images.
Fix: No fix available yet.
Acknowledgements
apko thanks Oleh Konko from 1seal for discovering and reporting this issue.
Executive ViewAI
Chainguard apko versions prior to 1.2.7 contain a package substitution vulnerability that allows network-positioned attackers to inject malicious APK packages into container images during the build process by exploiting insufficient validation of downloaded packages against signed index checksums. Organizations using apko for container image builds face risk of deploying compromised containers to production without detection, potentially affecting any downstream systems relying on those images. This vulnerability requires immediate patching to prevent supply chain contamination.
Vendor-released patch: apko version 1.2.7. Until patching is complete, implement network-level controls to enforce HTTPS-only package downloads with certificate pinning to trusted APK repositories, use air-gapped or internally-mirrored package sources, and enable build-time package hash verification via independent cryptographic validation tools external to apko.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Same technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-hcwr-pq9g-rq3m
NVD
CVE.org
EPSS
Exploit-DB