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

High 7.5 Published Updated

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.

Weakness: CWE-770, CWE-400

Which versions are affected by CVE-2026-25140?

1 open source package ship an affected version, including chainguard.dev/apko. It affects 1 product.

PackageAffectedFixed in
chainguard.dev/apko GoFrom 0.14.81.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.

Sources

Also known as GHSA-f4w5-5xv9-85f6, GO-2026-4410, MINI-9q46-75mp-9653.

Is CVE-2026-25140 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free