CVE-2026-42576
Last modified
CVE-2026-42576 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-42576?
How severe is CVE-2026-42576?
How do I fix CVE-2026-42576?
Are you affected by CVE-2026-42576?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
