apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
cve-program · CVE-2026-42576
Publishedapko 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.
Read the publisher's advisoryeuvd · EUVD-2026-28934
Publishedapko 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.
Read the publisher's advisorynvd · CVE-2026-42576
Publishedapko 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.
Read the publisher's advisoryosv · GHSA-m7hm-vm4x-28jf
Published`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. Affected versions <= 0.30.34. **Fix:** No fix available yet. **Acknowledgements** apko thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.
Read the publisher's advisoryosv · GO-2026-5497
Publishedapko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery in chainguard.dev/apko
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-42576 · CVE overview and exploitation status
cve-program · CVE-2026-42576
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf
- https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.7
euvd · EUVD-2026-28934
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf
- https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.7
nvd · CVE-2026-42576
- https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.7
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf
osv · GHSA-m7hm-vm4x-28jf
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf
- https://nvd.nist.gov/vuln/detail/CVE-2026-42576
- https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1
- https://github.com/chainguard-dev/apko
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.7
osv · GO-2026-5497
Related changes
Linked by CVE identifierNo related changes are available here.