Back to list

apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery — CVE-2026-42576

GitHub · GitHub · CVE-2026-42576

ID
CVE-2026-42576
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
6.5
EPSS
0.00032

Summary

`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.…

Product

go: chainguard.dev/apko

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories