CVE-2026-42576

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductChainguard.dev/apko
PublishedMay 9, 2026
First seenMay 9, 2026
Weakness typeCWE-704CWE-704

How to fix

Update
  • chainguard.dev/apko1.2.7 or later

Affected products

ProductAffected versionsFixed in
chainguard.dev/apkoGov < 1.2.71.2.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.