Skip to main content
← All vulnerabilities
CVE-2026-42576GO-2026-5497GHSA-M7HM-VM4X-28JF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • chainguard-dev apko

    fixed in 1.2.7

  • chainguard.dev/apkoGo

    fixed in 1.2.7

References 3

GitHub · chainguard-dev/apko