CVE Explorer
CVE-2026-42576
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"apko","vendor":"chainguard-dev","versions":[{"status":"affected","version":"< 1.2.7"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1a580d965eba19f6a02f6f15601471fac6350a6ce99ad4232700d8bd4020febd · sha256:e2d29f7268419fd6… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1a580d965eba19f6a02f6f15601471fac6350a6ce99ad4232700d8bd4020febd · sha256:e2d29f7268419fd6… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-704","description":"CWE-704: Incorrect Type Conversion or Cast","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1a580d965eba19f6a02f6f15601471fac6350a6ce99ad4232700d8bd4020febd · sha256:e2d29f7268419fd6… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1","tags":["x_refsource_MISC"],"url":"https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a580d965eba19f6a02f6f15601471fac6350a6ce99ad4232700d8bd4020febd · sha256:e2d29f7268419fd6… · /containers/cna/references/1
{"name":"https://github.com/chainguard-dev/apko/releases/tag/v1.2.7","tags":["x_refsource_MISC"],"url":"https://github.com/chainguard-dev/apko/releases/tag/v1.2.7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a580d965eba19f6a02f6f15601471fac6350a6ce99ad4232700d8bd4020febd · sha256:e2d29f7268419fd6… · /containers/cna/references/2
{"name":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf","tags":["x_refsource_CONFIRM"],"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a580d965eba19f6a02f6f15601471fac6350a6ce99ad4232700d8bd4020febd · sha256:e2d29f7268419fd6… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.