# CVE-2026-25122: apko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-02-03T23:58:37.000Z
- Modified: 2026-09-10T03:49:48.412Z
- Also known as: GHSA-6p9p-q6wh-9j89, GO-2026-4406
- Related: CGA-f3vx-5mgf-mh7c
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.0, 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. This issue has been patched in version 1.1.0.

(As written by CVE List.)

## Affected

- chainguard-dev apko: >= 0.14.8, < 1.1.0
- chainguard.dev/apko (Go): from 0.14.8 before 1.1.0
- chainguard apko: from 0.14.8 before 1.1.0

## Every score

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

## References

- <https://github.com/chainguard-dev/apko/security/advisories/GHSA-6p9p-q6wh-9j89> (advisory, third-party-advisory, web)
- <https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25122> (advisory)
- <https://github.com/chainguard-dev/apko> (package)

## Sources

- CVE List: [CVE-2026-25122](https://www.cve.org/CVERecord?id=CVE-2026-25122), CVE Terms of Use, modified 2026-02-04
- GitHub Advisory Database: [GHSA-6p9p-q6wh-9j89](https://github.com/advisories/GHSA-6p9p-q6wh-9j89), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4406](https://pkg.go.dev/vuln/GO-2026-4406), CC-BY-4.0, modified 2026-02-06
- NVD: [CVE-2026-25122](https://nvd.nist.gov/vuln/detail/CVE-2026-25122), Public domain, modified 2026-06-17

---

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