# CVE-2026-42575: apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitution possible)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-05-04T21:27:17.000Z
- Modified: 2026-09-10T03:50:47.142Z
- Also known as: GHSA-hcwr-pq9g-rq3m, GO-2026-5422
- Related: CGA-wrg6-rwvj-pmff
- Weaknesses: CWE-345, CWE-494
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- chainguard-dev apko: < 1.2.7
- chainguard.dev/apko (Go): before 1.2.7

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/chainguard-dev/apko/security/advisories/GHSA-hcwr-pq9g-rq3m> (advisory, web)
- <https://github.com/chainguard-dev/apko/commit/a118c3d604107532b5525bd4bee2fb369a6228aa> (web)
- <https://github.com/chainguard-dev/apko/releases/tag/v1.2.7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42575> (advisory)
- <https://github.com/chainguard-dev/apko> (package)

## Sources

- CVE List: [CVE-2026-42575](https://www.cve.org/CVERecord?id=CVE-2026-42575), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-hcwr-pq9g-rq3m](https://github.com/advisories/GHSA-hcwr-pq9g-rq3m), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5422](https://pkg.go.dev/vuln/GO-2026-5422), CC-BY-4.0, modified 2026-07-22
- NVD: [CVE-2026-42575](https://nvd.nist.gov/vuln/detail/CVE-2026-42575), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-42575 · Whole record: https://cve.day/CVE-2026-42575.json · Rebuilt by cve.day 2026-11-25T22:59:21.153Z
