{"id":"CVE-2026-25122","aliases":["CVE-2026-25122","GHSA-6p9p-q6wh-9j89","GO-2026-4406"],"related":["CGA-f3vx-5mgf-mh7c"],"kind":"vulnerability","state":"published","title":"apko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"`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).                                                                                                                      \n                                                                                                                                                                                              \nThe `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.             \n                                                                                                                                                                                              \n**Fix:** Fixed with [2be3903](https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09), Released in v1.1.0.                                                  \n                                                                                                                                                                                              \n**Acknowledgements**                                                                                                                                                                        \n                                                                                                                                                                                             \napko thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"apko affected by unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams in chainguard.dev/apko","format":"markdown","source":"go"},{"lang":"es","text":"apko permite a los usuarios construir y publicar imágenes de contenedor OCI construidas a partir de paquetes apk. Desde la versión 0.14.8 hasta antes de la 1.1.0, expandapk.Split drena el primer flujo gzip de un archivo APK a través de io.Copy(io.Discard, gzi) sin límites explícitos. Con un flujo de entrada controlado por un atacante, esto puede forzar un gran trabajo de descompresión gzip y llevar al agotamiento de recursos (impacto en la disponibilidad). La función Split lee la primera cabecera tar, luego drena el resto del flujo gzip leyendo directamente del lector gzip sin ningún límite máximo de bytes descomprimidos o tope de relación de descompresión. Un llamador que analiza flujos APK controlados por un atacante puede verse forzado a gastar un tiempo excesivo de CPU descomprimiendo datos gzip, lo que lleva a tiempos de espera o ralentización del proceso. Este problema ha sido parcheado en la versión 1.1.0.","source":"nvd"}],"published":"2026-02-03T23:58:37.000Z","modified":"2026-09-10T03:49:48.412Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":">= 0.14.8, < 1.1.0","status":"affected"}],"vendor":"chainguard-dev","product":"apko","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.14.8","status":"affected","fixed":"1.1.0"}],"ecosystem":"Go","package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.14.8","status":"affected","fixed":"1.1.0"}],"ecosystem":"Go","package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"go"},{"ranges":[{"status":"affected","introduced":"0.14.8","fixed":"1.1.0"}],"vendor":"chainguard","product":"apko","cpe":"cpe:2.3:a:chainguard:apko:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-6p9p-q6wh-9j89","tags":["advisory","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25122","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/chainguard-dev/apko","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-04T19:19:20.825Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25122","url":"https://www.cve.org/CVERecord?id=CVE-2026-25122","licence":"CVE Terms of Use","modified":"2026-02-04T19:19:35.546Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6p9p-q6wh-9j89","url":"https://github.com/advisories/GHSA-6p9p-q6wh-9j89","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:48.412Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4406","url":"https://pkg.go.dev/vuln/GO-2026-4406","licence":"CC-BY-4.0","modified":"2026-02-06T02:13:48.097Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25122","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25122","licence":"Public domain","modified":"2026-06-17T10:24:08.763Z"}],"updatedAt":"2026-11-25T22:59:13.493Z","epss":{"score":0.00129,"percentile":0.02707,"date":"2026-12-01T12:00:22.000Z"}}