Back

MEDIUM

apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery

Published May 9, 2026

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

Remediation

No remediation recorded yet.

Weaknesses (1)

References (6)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published May 9, 2026
Updated May 11, 2026
Reserved Apr 28, 2026
CISA Vulnrichment
Updated May 11, 2026
NVD
Status Deferred
Modified Jul 24, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner GitHub_M
Published May 9, 2026
Updated May 11, 2026
Exploited since n/a
EUVD-2026-28934 GHSA-M7HM-VM4X-28JF