Advisory

GHSA-m7hm-vm4x-28jf

Also known as: CVE-2026-42576, GO-2026-5497

Summary

apko DiscoverKeys has a panic on non-rsa jwks key that causes crash during key discovery

Details

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.

Acknowledgements

apko thanks Oleh Konko from 1seal for discovering and reporting this issue.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-04 21:25 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

chainguard.dev/apko

Go · All systems

Affected

  • introduced 0, fixed 1.2.7 (semver)

Fixed versions

1.2.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences