{"id":"GHSA-6p9p-q6wh-9j89","revision":"3cae0c3a8ca54842972e891c00b090f1","records":[{"revision":"3cae0c3a8ca54842972e891c00b090f1","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-6p9p-q6wh-9j89","aliases":["CVE-2026-25122","GO-2026-4406"],"title":"apko affected by unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams ","description":"`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.","state":0,"publishedAt":"2026-02-03T23:58:37+00:00","modifiedAt":"2026-09-10T03:49:48.4123659+00:00","affected":[{"ecosystem":"Go","name":"chainguard.dev/apko","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.14.8"},{"kind":"fixed","version":"1.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/chainguard-dev/apko/security/advisories/GHSA-6p9p-q6wh-9j89","https://nvd.nist.gov/vuln/detail/CVE-2026-25122","https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","https://github.com/chainguard-dev/apko"],"sourceUrl":"https://github.com/advisories/GHSA-6p9p-q6wh-9j89","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6p9p-q6wh-9j89","identifiers":["GHSA-6p9p-q6wh-9j89","CVE-2026-25122","GO-2026-4406"]},"retained":false,"historicalAffected":[]}],"coverage":[]}