apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
Published May 9, 2026
6.5
MEDIUMCVSS 3.1
EPSS 0.45%
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.
Affected products
-
- Version < 1.2.7StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Chainguard-Dev | Apko | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
chainguard.dev/apko
Go
Introduced 0 Fixed 1.2.7
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | chainguard.dev/apko | 0 | 1.2.7 |
Remediation
No remediation recorded yet.
References (6)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-28934 Advisory
- https://github.com/advisories/GHSA-m7hm-vm4x-28jf Advisory
- https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1 x_refsource_MISC
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.7 x_refsource_MISC
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-42576
Change history (0)
No recorded changes yet.