{"id":"GHSA-m7hm-vm4x-28jf","revision":"fe1c0549377d489b998e82f1192fc888","records":[{"revision":"fe1c0549377d489b998e82f1192fc888","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-m7hm-vm4x-28jf","aliases":["CVE-2026-42576","GO-2026-5497"],"title":"apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery","description":"`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.\n\n**Fix:** No fix available yet.\n\n**Acknowledgements**\n\napko thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.","state":0,"publishedAt":"2026-05-04T21:25:30+00:00","modifiedAt":"2026-09-10T03:51:06.2971247+00:00","affected":[{"ecosystem":"Go","name":"chainguard.dev/apko","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.2.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["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"],"sourceUrl":"https://github.com/advisories/GHSA-m7hm-vm4x-28jf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-m7hm-vm4x-28jf","identifiers":["GHSA-m7hm-vm4x-28jf","CVE-2026-42576","GO-2026-5497"]},"retained":false,"historicalAffected":[]}],"coverage":[]}