GHSA-m7hm-vm4x-28jf

Suggest an improvement
Source
https://github.com/advisories/GHSA-m7hm-vm4x-28jf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-m7hm-vm4x-28jf/GHSA-m7hm-vm4x-28jf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m7hm-vm4x-28jf
Aliases
  • CVE-2026-42576
Downstream
Related
Published
2026-05-04T21:25:30Z
Modified
2026-05-05T19:14:20.628284057Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery
Details

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. Affected versions <= 0.30.34.

Fix: No fix available yet.

Acknowledgements

apko thanks Oleh Konko from 1seal for discovering and reporting this issue.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2026-05-04T21:25:30Z",
    "cwe_ids": [
        "CWE-704"
    ],
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

Go / chainguard.dev/apko

Package

Name
chainguard.dev/apko
View open source insights on deps.dev
Purl
pkg:golang/chainguard.dev/apko

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-m7hm-vm4x-28jf/GHSA-m7hm-vm4x-28jf.json"