{"cve":"CVE-2026-42576","nvd":{"published":"2026-05-09T20:16:29.717","modified":"2026-07-24T20:10:00.147","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-704"],"references":["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"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-42576","score":0.00252,"percentile":0.16766,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m7hm-vm4x-28jf","url":"https://osv.dev/vulnerability/GHSA-m7hm-vm4x-28jf","summary":"apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery","modified":"2026-09-10T03:51:06.297124681Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","ranges":["<1.2.7"],"fixed":["1.2.7"]}]},{"id":"GO-2026-5497","url":"https://osv.dev/vulnerability/GO-2026-5497","summary":"apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery in chainguard.dev/apko","modified":"2026-07-22T20:59:37.451784069Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","ranges":["<1.2.7"],"fixed":["1.2.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}