{"id":"CVE-2026-25122","published":"2026-02-04T19:02:15Z","modified":"2026-02-04T19:19:35Z","title":"apko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams","vendor":"chainguard-dev","product":"apko","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00194,"percentile":0.05192,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-6p9p-q6wh-9j89","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","tags":["x_refsource_MISC"]}],"priority":{"score":4.9,"factors":[{"name":"EPSS percentile","points":1.04},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"apko","versions":[">= 0.14.8, < 1.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-04T19:19:20.825588Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/apko","vulnerableRanges":[">=0.14.8, <1.1.0"],"patched":["1.1.0"],"from":["GHSA-6p9p-q6wh-9j89","GO-2026-4406"],"provenance":"source"}],"summary":{"text":"apko, the tool for building and publishing OCI container images from apk packages, contains an unbounded resource consumption flaw in its expandapk.Split function, which drains the first gzip stream of an APK archive without any byte limit or inflate-ratio cap. An attacker who can supply an APK stream to a caller that parses it, with a user needing to take action to trigger the processing, can force excessive gzip inflation and CPU use, causing timeouts or process slowdown.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:21Z"},"euvd":{"id":"EUVD-2026-5379","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-chainguard-dev-apko-cve-2026-25122","children":[{"from":"CVE-2026-25122","to":"CVE-2026-42575","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/apk/apk/package_getter.go"],"commits":["https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","https://github.com/chainguard-dev/apko/commit/a118c3d604107532b5525bd4bee2fb369a6228aa"],"basis":"shared function","functions":["getPackageImpl"]}]},{"from":"CVE-2026-25122","to":"CVE-2026-42576","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/apk/apk/implementation.go"],"commits":["https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","https://github.com/chainguard-dev/apko/commit/6604826b19e36e9bc6e196592800fad93738f4a1"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-36127","published":"2024-06-03","fixed":"0.14.5","kev":false},{"cve":"CVE-2025-53945","published":"2025-07-18","fixed":"0.29.5","kev":false},{"cve":"CVE-2026-25121","published":"2026-02-04","fixed":"1.1.0","kev":false},{"cve":"CVE-2026-25122","published":"2026-02-04","fixed":"1.1.0","kev":false},{"cve":"CVE-2026-25140","published":"2026-02-04","fixed":"1.1.1","kev":false,"link":{"from":"CVE-2026-25122","to":"CVE-2026-25140","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.1.0","toFixed":"1.1.1","daysApart":0},{"kind":"similar","provenance":"machine","score":0.26,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-42574","published":"2026-05-09","fixed":"1.2.5","kev":false},{"cve":"CVE-2026-42575","published":"2026-05-09","fixed":"1.2.7","kev":false}],"package":"Go:chainguard.dev/apko"}}