CVE-2026-42576 json
apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
published 6mo ago modified last mo. also EUVD-2026-28934 , GHSA-m7hm-vm4x-28jf , GO-2026-5497
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go chainguard.dev/apko 1.2.7
- chainguard apko 1.2.7
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
Is CVE-2026-42576 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5mo ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | chainguard.dev/apko | <1.2.7 |
1.2.7 |
Affected products
- chainguard-dev apko
Classification
- Weakness
-
- CWE-704 Incorrect Type Conversion or Cast
References
-
github.com
/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1
web
-
github.com
/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf
web, advisory
-
github.com
/chainguard-dev/apko/releases/tag/v1.2.7
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-42576
advisory
-
github.com
/chainguard-dev/apko
package
Sources
- CVE List CVE-2026-42576
- GitHub Advisory GHSA-m7hm-vm4x-28jf
- NVD CVE-2026-42576
- OSV GO-2026-5497
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.