Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-42576— apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery

Quick assessment

Affected
chainguard-dev apko
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

apko是apko开源的一个基于 apk 的 OCI 镜像构建器。 apko 1.2.7之前版本存在代码问题漏洞,该漏洞源于DiscoverKeys无条件地将JWKS密钥类型断言为*rsa.PublicKey而未检查密钥类型,可能导致非RSA密钥导致恐慌和崩溃。

CVSS 6.5 · Medium EPSS 0.45% · P37

Possible ATT&CK Techniques 1 AI

T1496 · Resource Hijacking

Affected Version Matrix 1

VendorProduct Version RangeStatus
chainguard-dev apko < 1.2.7 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-42576

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
不正确的类型转换
Source: CVE Program / CVE List V5
Vulnerability Title
apko 代码问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
apko是apko开源的一个基于 apk 的 OCI 镜像构建器。 apko 1.2.7之前版本存在代码问题漏洞,该漏洞源于DiscoverKeys无条件地将JWKS密钥类型断言为*rsa.PublicKey而未检查密钥类型,可能导致非RSA密钥导致恐慌和崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
chainguard-dev apko < 1.2.7 -

II. Public POCs for CVE-2026-42576

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-42576

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-42576 (1)

Vendor Advisories for CVE-2026-42576 (1)

Vendor Pages for CVE-2026-42576 (1)

Same Patch Batch · chainguard-dev · 2026-05-09 · 3 CVEs total

CVE-2026-42574 7.5 HIGH apko dirFS has a symlink-following path traversal that allows multiple entry points to esc
CVE-2026-42575 7.5 HIGH apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitutio

IV. Related Vulnerabilities

V. Comments for CVE-2026-42576

No comments yet


Leave a comment