{"id":"CVE-2026-25140","published":"2026-02-04T19:02:20Z","modified":"2026-02-04T19:17:36Z","title":"apko affected by potential unbounded resource consumption in expandapk.ExpandApk 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.1, an attacker who controls or compromises an APK repository used by apko could cause resource exhaustion on the build host. The ExpandApk function in pkg/apk/expandapk/expandapk.go expands .apk streams without enforcing decompression limits, allowing a malicious repository to serve a small, highly-compressed .apk that inflates into a large tar stream, consuming excessive disk space and CPU time, causing build failures or denial of service. This issue has been patched in version 1.1.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00407,"percentile":0.35825,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-f4w5-5xv9-85f6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.17},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"apko","versions":[">= 0.14.8, < 1.1.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-04T19:17:26.936567Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/apko","vulnerableRanges":[">=0.14.8, <1.1.1"],"patched":["1.1.1"],"from":["GO-2026-4410"],"provenance":"source"}],"summary":{"text":"The apko container image builder has an unbounded decompression flaw in the ExpandApk function (pkg/apk/expandapk/expandapk.go) that processes .apk streams without enforcing size or decompression limits. An attacker who controls or compromises an APK repository that apko uses can serve a small, highly compressed .apk that inflates into a very large stream, exhausting disk space and CPU on the build host; this requires no privileges or user interaction, only that the malicious repository is used by the build.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:03Z"},"euvd":{"id":"EUVD-2026-5381","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-chainguard-dev-apko-cve-2026-25122","children":[{"from":"CVE-2026-25140","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-25140","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-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,"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-25140","published":"2026-02-04","fixed":"1.1.1","kev":false},{"cve":"CVE-2026-42574","published":"2026-05-09","fixed":"1.2.5","kev":false,"link":{"from":"CVE-2026-25140","to":"CVE-2026-42574","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.1.1","toFixed":"1.2.5","daysApart":94}]}},{"cve":"CVE-2026-42575","published":"2026-05-09","fixed":"1.2.7","kev":false},{"cve":"CVE-2026-42576","published":"2026-05-09","fixed":"1.2.7","kev":false}],"package":"Go:chainguard.dev/apko"}}