{"schemaVersion":3,"id":"CVE-2026-42576","aliases":["CGA-fwmr-8r6m-g2fx","CGA-pjf9-jpxr-3qcw","CGA-x7jc-37jv-35j9","GHSA-m7hm-vm4x-28jf","GO-2026-5497","CGA-7pqj-pmxq-95pm","CGA-g22w-pxxj-53xx","CGA-p66c-vvh2-crvm","CGA-q68m-97vh-5pjv"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-05-09T19:26:56.224Z","modified":"2026-05-11T14:57:58.452Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00452,"percentile":0.37917,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.19999999999999996,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00252},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00452,"percentile":0.37917}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00452,"percentile":0.37917}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-704","name":"Incorrect Type Conversion or Cast","description":"The product does not correctly convert an object, resource, or structure from one type to a different type.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/704.html"}],"affected":[{"vendor":"chainguard","product":"amazon-ssm-agent-ecs-exec-fips","name":"amazon-ssm-agent-ecs-exec-fips","label":"amazon-ssm-agent-ecs-exec-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/amazon-ssm-agent-ecs-exec-fips","purlType":"apk","versions":[{"text":"< 3.3.3270.0-r15","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.3270.0-r15","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cargobump","name":"cargobump","label":"cargobump","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cargobump","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"dagdotdev","name":"dagdotdev","label":"dagdotdev","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/dagdotdev","purlType":"apk","versions":[{"text":"< 0.0.20-r14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.20-r14","eol":null,"hubHref":null},{"vendor":"wolfi","product":"cargobump","name":"cargobump","label":"cargobump","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/cargobump","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"dagdotdev","name":"dagdotdev","label":"dagdotdev","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/dagdotdev","purlType":"apk","versions":[{"text":"< 0.0.20-r14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.20-r14","eol":null,"hubHref":null},{"vendor":"chainguard-dev","product":"apko","name":"apko","label":"apko","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.2.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.7","eol":null,"hubHref":"/vendor/chainguard-dev/apko"},{"vendor":"chainguard.dev","product":"apko","name":"chainguard.dev/apko","label":"apko","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/chainguard.dev/apko","purlType":"golang","versions":[{"text":"< 1.2.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.7","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf","label":"github.com/chainguard-dev/apko/security/advisories/GHSA-m7hm-vm4x-28jf","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB"]},{"url":"https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1","label":"github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB"]},{"url":"https://github.com/chainguard-dev/apko/releases/tag/v1.2.7","label":"github.com/chainguard-dev/apko/releases/tag/v1.2.7","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42576.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42576.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42576","label":"nvd.nist.gov/vuln/detail/CVE-2026-42576","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/chainguard-dev/apko","label":"github.com/chainguard-dev/apko","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21483-1"],"duplicates":[],"related":["CGA-VQ4Q-HXH3-R2F6","OPENSUSE-SU-2026:21483-1"]},"timeline":[{"kind":"published","date":"2026-05-09T19:26:56.224Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-11T14:57:58.452Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:45:55.016Z","stale":false,"partial":false}}