Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. chainguard.dev/apko
  4. ›
  5. CVE-2026-42575

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

May 4, 2026

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.

Fix: No fix available yet.

Acknowledgements

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

References

  • github.com/advisories/GHSA-hcwr-pq9g-rq3m
  • github.com/chainguard-dev/apko
  • github.com/chainguard-dev/apko/security/advisories/GHSA-hcwr-pq9g-rq3m
  • nvd.nist.gov/vuln/detail/CVE-2026-42575

Code Behaviors & Features

Detect and mitigate CVE-2026-42575 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.7

Fixed versions

  • 1.2.7

Solution

Upgrade to version 1.2.7 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-494: Download of Code Without Integrity Check

Source file

go/chainguard.dev/apko/CVE-2026-42575.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:08 +0000.