CVE-2026-42576
apko allows users to build and publish OCI container images built …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf
- github.com/advisories/GHSA-m7hm-vm4x-28jf
- github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1
- github.com/chainguard-dev/apko/releases/tag/v1.2.7
- nvd.nist.gov/vuln/detail/CVE-2026-42576
- nvd.nist.gov/vuln/detail/CVE-2026-42576
- cve.org/CVERecord?id=CVE-2026-42576
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.