{"answers":{"affected":"3 open source packages ship an affected version, including chainguard.dev/apko.","exploited":"There is no known exploitation of CVE-2026-42576 in the wild and no public exploit code.","fix":"Upgrade chainguard.dev/apko to 1.2.7 or later.","what":"CVE-2026-42576 is a medium-severity vulnerability in chainguard-dev apko, published on 9 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42576 and fix it if it is affected.\n\nWhat it is: CVE-2026-42576 is a medium-severity vulnerability in chainguard-dev apko, published on 9 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-42576 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- chainguard.dev/apko (Go): affected all versions; fixed in 1.2.7\n- chainguard.dev/apko (Go): affected all versions; fixed in 1.2.7\n- chainguard.dev/apko (Go): affected all versions; fixed in 1.2.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42576/ (Markdown: https://insights.sbomify.com/CVE-2026-42576/index.md)","id":"CVE-2026-42576","markdown":"https://insights.sbomify.com/CVE-2026-42576/index.md","name":"CVE-2026-42576","record":{"aliases":["CLEANSTART-2026-VJ96840","GHSA-m7hm-vm4x-28jf","GO-2026-5497","MINI-4rgw-fqwc-8fwg","MINI-cr5j-436v-wqgr","MINI-qhgw-vhmr-6g56"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"OCI container builder","requires_auth":"none","summary":"An attacker can cause a denial of service in apko by providing a non-RSA key in a JWKS endpoint, triggering a panic during key discovery.","user_interaction":"required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-704","name":"Incorrect Type Conversion or Cast"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery","id":"CVE-2026-42576","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"null_dereference","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Netty: epoll transport denial of service via RST on half-closed TCP connection","id":"CVE-2026-42577"},"packages":[{"ecosystem":"Go","fixed":["1.2.7"],"introduced":["0"],"last_affected":[],"package":"chainguard.dev/apko","purl":null,"source":"GHSA-m7hm-vm4x-28jf"},{"ecosystem":"Go","fixed":["1.2.7"],"introduced":["0"],"last_affected":[],"package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"GHSA-m7hm-vm4x-28jf"},{"ecosystem":"Go","fixed":["1.2.7"],"introduced":["0"],"last_affected":[],"package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"GO-2026-5497"}],"prev":{"headline":"apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitution possible)","id":"CVE-2026-42575"},"products":["apko"],"published":"2026-05-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-11","vendors":["chainguard-dev"]},"summary":"An attacker can cause a denial of service in apko by providing a non-RSA key in a JWKS endpoint, triggering a panic during key discovery.","url":"https://insights.sbomify.com/CVE-2026-42576/"}