chainguard.dev/apko
Affected
- introduced
0, fixed1.2.7(semver)
Fixed versions
1.2.7
Fix
- Fixed version
1.2.7go get chainguard.dev/[email protected]
Advisory
Also known as: CVE-2026-42576, GO-2026-5497
apko DiscoverKeys has a panic on non-rsa jwks key that causes crash during key discovery
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.
Medium Basis: The source's own band: MODERATE
0, fixed 1.2.7 (semver)1.2.7
1.2.7go get chainguard.dev/[email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0