apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
Moderate severity
GitHub Reviewed
Published
Apr 23, 2026
in
chainguard-dev/apko
•
Updated May 13, 2026
Description
Published to the GitHub Advisory Database
May 4, 2026
Reviewed
May 4, 2026
Published by the National Vulnerability Database
May 9, 2026
Last updated
May 13, 2026
DiscoverKeysinpkg/apk/apk/implementation.gounconditionally type-asserts JWKS keys as*rsa.PublicKeywithout 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. Affected versions <= 0.30.34.Fix: No fix available yet.
Acknowledgements
apko thanks Oleh Konko from 1seal for discovering and reporting this issue.
References