CVE-2026-42575: CWE-345: Insufficient Verification of Data Authenticity in chainguard-dev apko
apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, 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. This issue has been patched in version 1.2.7.
AI Analysis
Technical Summary
The vulnerability in apko versions before 1.2.7 involves insufficient verification of data authenticity (CWE-345). While the signature on the APKINDEX.tar.gz file is verified, the checksums of individual .apk packages downloaded are not compared against the signed index checksums. The checksum values are parsed and available, and the package hash is computed, but the comparison is never performed in the getPackageImpl() function. This flaw allows an attacker capable of intercepting or manipulating package downloads (e.g., via compromised mirrors, HTTP repositories, or poisoned CDN caches) to inject arbitrary packages into container images built by apko. The vulnerability is tracked as CVE-2026-42575 with a CVSS 3.1 base score of 7.5 (high severity), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and an impact on integrity but not confidentiality or availability. The issue has been patched in apko version 1.2.7.
Potential Impact
An attacker who can substitute download responses can cause apko to silently accept and install arbitrary packages into OCI container images. This compromises the integrity of the built images, potentially allowing malicious code inclusion. There is no impact on confidentiality or availability indicated. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade apko to version 1.2.7 or later, where this vulnerability has been patched. Prior to upgrading, be cautious of using untrusted mirrors or HTTP repositories for package downloads. Patch status is not explicitly stated but the description confirms the issue is fixed in version 1.2.7.
CVE-2026-42575: CWE-345: Insufficient Verification of Data Authenticity in chainguard-dev apko
Description
apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, 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. This issue has been patched in version 1.2.7.
CVSS v3.1
Score 7.5high
Affected software
pkg:github/chainguard-dev/apkoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in apko versions before 1.2.7 involves insufficient verification of data authenticity (CWE-345). While the signature on the APKINDEX.tar.gz file is verified, the checksums of individual .apk packages downloaded are not compared against the signed index checksums. The checksum values are parsed and available, and the package hash is computed, but the comparison is never performed in the getPackageImpl() function. This flaw allows an attacker capable of intercepting or manipulating package downloads (e.g., via compromised mirrors, HTTP repositories, or poisoned CDN caches) to inject arbitrary packages into container images built by apko. The vulnerability is tracked as CVE-2026-42575 with a CVSS 3.1 base score of 7.5 (high severity), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and an impact on integrity but not confidentiality or availability. The issue has been patched in apko version 1.2.7.
Potential Impact
An attacker who can substitute download responses can cause apko to silently accept and install arbitrary packages into OCI container images. This compromises the integrity of the built images, potentially allowing malicious code inclusion. There is no impact on confidentiality or availability indicated. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade apko to version 1.2.7 or later, where this vulnerability has been patched. Prior to upgrading, be cautious of using untrusted mirrors or HTTP repositories for package downloads. Patch status is not explicitly stated but the description confirms the issue is fixed in version 1.2.7.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T17:26:12.085Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ff8cbdcbff5d86106ac33b
Added to database: 05/09/2026, 19:36:29 UTC
Last enriched: 05/17/2026, 09:35:19 UTC
Last updated: 06/28/2026, 08:51:25 UTC
Views: 147
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.