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

CVE-2026-25122: apko affected by unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams

February 3, 2026 (updated February 4, 2026)

expandapk.Split drains the first gzip stream of an APK archive via io.Copy(io.Discard, gzi) without explicit bounds. With an attacker-controlled input stream, this can force large gzip inflation work and lead to resource exhaustion (availability impact).

The Split function reads the first tar header, then drains the remainder of the gzip stream by reading from the gzip reader directly without any maximum uncompressed byte limit or inflate-ratio cap. A caller that parses attacker-controlled APK streams may be forced to spend excessive CPU time inflating gzip data, leading to timeouts or process slowdown.

Fix: Fixed with 2be3903, Released in v1.1.0.

Acknowledgements

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

References

  • github.com/advisories/GHSA-6p9p-q6wh-9j89
  • github.com/chainguard-dev/apko
  • github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09
  • github.com/chainguard-dev/apko/security/advisories/GHSA-6p9p-q6wh-9j89
  • nvd.nist.gov/vuln/detail/CVE-2026-25122

Code Behaviors & Features

Detect and mitigate CVE-2026-25122 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 starting from 0.14.8 before 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 07 Feb 2026 12:18:41 +0000.