CVE-2026-25140 apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams
An attacker controlling an APK repository can cause resource exhaustion on the build host by serving highly compressed APK streams, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-25140?
CVE-2026-25140 is a high-severity denial of service vulnerability in chainguard-dev apko, published on 4 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-25140?
1 open source package ship an affected version, including chainguard.dev/apko. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chainguard.dev/apko Go | From 0.14.8 | 1.1.1 |
Products include Chainguard Apko.
How do I fix CVE-2026-25140?
Upgrade chainguard.dev/apko to 1.1.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-25140 being exploited?
There is no known exploitation of CVE-2026-25140 in the wild and no public exploit code.
Other vulnerabilities in chainguard-dev apko
Sources
Also known as GHSA-f4w5-5xv9-85f6, GO-2026-4410, MINI-9q46-75mp-9653.