# CVE-2026-25140: apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-02-04T19:02:20.988Z
- Modified: 2026-06-17T10:24:10.650Z
- Also known as: GO-2026-4410, GHSA-f4w5-5xv9-85f6
- Related: CGA-772m-7m37-3f6r
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, 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.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.

(As written by CVE List.)

## Affected

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

## References

- <https://github.com/chainguard-dev/apko/security/advisories/GHSA-f4w5-5xv9-85f6> (advisory, third-party-advisory)
- <https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25140> (advisory)

## Sources

- CVE List: [CVE-2026-25140](https://www.cve.org/CVERecord?id=CVE-2026-25140), CVE Terms of Use, modified 2026-02-04
- Go Vulnerability Database: [GO-2026-4410](https://pkg.go.dev/vuln/GO-2026-4410), CC-BY-4.0, modified 2026-03-18
- NVD: [CVE-2026-25140](https://nvd.nist.gov/vuln/detail/CVE-2026-25140), Public domain, modified 2026-06-17

---

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