Medium severity6.5GHSA Advisory· Published May 9, 2026· Updated May 13, 2026
CVE-2026-42576
CVE-2026-42576
Description
apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, DiscoverKeys in pkg/apk/apk/implementation.go unconditionally type-asserts JWKS keys as *rsa.PublicKey without checking the key type. If a repository JWKS endpoint returns a non-RSA key (e.g. EC), the unchecked assertion panics and crashes apko. This affects any workflow that initializes the APK database and fetches repository keys. This issue has been patched in version 1.2.7.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
chainguard.dev/apkoGo | < 1.2.7 | 1.2.7 |
Affected products
5- Range: < 1.2.7
- osv-coords4 versionspkg:apk/chainguard/amazon-ssm-agent-ecs-exec-fipspkg:apk/chainguard/dagdotdevpkg:apk/wolfi/dagdotdevpkg:golang/chainguard.dev/apko
< 3.3.3270.0-r15+ 3 more
- (no CPE)range: < 3.3.3270.0-r15
- (no CPE)range: < 0.0.20-r14
- (no CPE)range: < 0.0.20-r14
- (no CPE)range: < 1.2.7
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-m7hm-vm4x-28jfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-42576ghsaADVISORY
- github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1nvdWEB
- github.com/chainguard-dev/apko/releases/tag/v1.2.7nvdWEB
- github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jfnvdWEB
News mentions
0No linked articles in our index yet.