CVE-2026-42576: chainguard-dev apko Incorrect Type Conversion or Cast
Vulnerability summary
CVE-2026-42576 is a medium (CVSS 6.5) Incorrect Type Conversion or Cast vulnerability in chainguard-dev apko. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 09-05-2026PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
+0.20 pp
From 0.25% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- amazon-ssm-agent-ecs-exec-fips< 3.3.3270.0-r15
- cargobumpAll versions (No fix recorded)
- dagdotdev< 0.0.20-r14
Wolfi2 products
- cargobumpAll versions (No fix recorded)
- dagdotdev< 0.0.20-r14
Chainguard-dev1 product
- apko< 1.2.7
Chainguard.dev1 product
- apko< 1.2.7
4 vendors · 7 products
References
6 links- github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jfX Refsource CONFIRMAdvisoryWEB
- github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1X Refsource MISCFIXWEB