Skip to main content

apko CVE-2026-42575

HIGH
Insufficient Verification of Data Authenticity (CWE-345)
2026-05-04 https://github.com/chainguard-dev/apko GHSA-hcwr-pq9g-rq3m
7.5
CVSS 3.1 · Vendor: https://github.com/chainguard-dev/apko
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position on network path
  2. Delivery
    Intercept APK download request
  3. Exploit
    Respond with malicious package file
  4. Execution
    apko skips checksum validation
  5. Persist
    Malicious package installed in image
  6. Impact
    Container 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go chainguard.dev/apko fix: 1.2.7

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

Vendor (https://github.com/chainguard-dev/apko) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
SUSE HIGH

Primary rating from Vendor (https://github.com/chainguard-dev/apko).

CVSS VectorVendor: https://github.com/chainguard-dev/apko

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

pkg:go/chainguard.dev_apko

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy