{"id":"CVE-2026-42575","published":"2026-05-09T19:26:27Z","modified":"2026-05-13T17:45:37Z","title":"apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitution possible)","vendor":"chainguard-dev","product":"apko","tier":"tail","description":{"text":"apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, apko verifies the signature on APKINDEX.tar.gz but never compares individually downloaded .apk packages against the checksum recorded in the signed index. The checksum is parsed and available via ChecksumString(), and the downloaded package control hash is computed, but the two values are never compared in getPackageImpl(). Mismatched packages are silently accepted. An attacker who can substitute download responses (compromised mirror, HTTP repository, poisoned CDN cache) can install arbitrary packages into built images. This issue has been patched in version 1.2.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00159,"percentile":0.05176,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-494","name":"Download of Code Without Integrity Check"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-hcwr-pq9g-rq3m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/apko/commit/a118c3d604107532b5525bd4bee2fb369a6228aa","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/apko/releases/tag/v1.2.7","tags":["x_refsource_MISC"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":1.04},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"apko","versions":["< 1.2.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-13T17:16:25.317424Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/apko","vulnerableRanges":["<1.2.7"],"patched":["1.2.7"],"from":["GHSA-hcwr-pq9g-rq3m","GO-2026-5422"],"provenance":"source"}],"summary":{"text":"apko, the tool for building and publishing OCI container images from apk packages, fails to compare each downloaded .apk package against the checksum listed in the signed APKINDEX.tar.gz, even though it verifies the index signature, so mismatched packages are silently accepted. An attacker who can substitute package download responses, such as through a compromised mirror, an HTTP repository, or a poisoned CDN cache, can get arbitrary packages installed into built images, with no authentication or user interaction required, assuming network-level control over those downloads.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:07Z"},"euvd":{"id":"EUVD-2026-28933","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-chainguard-dev-apko-cve-2026-25122","parents":[{"from":"CVE-2026-25122","to":"CVE-2026-42575","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/apk/apk/package_getter.go"],"commits":["https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","https://github.com/chainguard-dev/apko/commit/a118c3d604107532b5525bd4bee2fb369a6228aa"],"basis":"shared function","functions":["getPackageImpl"]}]},{"from":"CVE-2026-25140","to":"CVE-2026-42575","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/apk/apk/package_getter.go"],"commits":["https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","https://github.com/chainguard-dev/apko/commit/a118c3d604107532b5525bd4bee2fb369a6228aa"],"basis":"shared function","functions":["getPackageImpl"]}]}],"packageHistory":[{"cve":"CVE-2026-25122","published":"2026-02-04","fixed":"1.1.0","kev":false},{"cve":"CVE-2026-25140","published":"2026-02-04","fixed":"1.1.1","kev":false},{"cve":"CVE-2026-42574","published":"2026-05-09","fixed":"1.2.5","kev":false,"link":{"from":"CVE-2026-42574","to":"CVE-2026-42575","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.2.5","toFixed":"1.2.7","daysApart":0}]}},{"cve":"CVE-2026-42575","published":"2026-05-09","fixed":"1.2.7","kev":false},{"cve":"CVE-2026-42576","published":"2026-05-09","fixed":"1.2.7","kev":false},{"cve":"CVE-2026-54174","published":"2026-09-11","fixed":"1.2.9","kev":false,"link":{"from":"CVE-2026-42575","to":"CVE-2026-54174","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.2.7","toFixed":"1.2.9","daysApart":125}]}}],"package":"Go:chainguard.dev/apko"}}