apko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chainguard-dev | apko | 0.14.8 to before 1.1.0 | 1.1.0 | Patch available | CNA |
| — | chainguard.dev/apko (Go) | 0.14.8 to before 1.1.0 | 1.1.0 | Patch available | GHSA-6p9p-q6wh-9j89 |
- apko Vendorchainguard-dev Affected 0.14.8 to before 1.1.0 Fixed in 1.1.0 Patch available CNA
- chainguard.dev/apko (Go) Vendor— Affected 0.14.8 to before 1.1.0 Fixed in 1.1.0 Patch available GHSA-6p9p-q6wh-9j89
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:chainguard:apko:*:*:*:*:*:go:*:* | 0.14.8 to before 1.1.0 | Vulnerable | chainguard-dev |
- cpe:2.3:a:chainguard:apko:*:*:*:*:*:go:*:* Versions 0.14.8 to before 1.1.0 Vulnerable ·chainguard-dev
Remediation
- Fix · CNA apko (chainguard-dev) Fixed in 1.1.0
- Fix · GHSA-6p9p-q6wh-9j89 chainguard.dev/apko (Go) Fixed in 1.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25122
- 2026-10-03 Alias added: GHSA-6p9p-q6wh-9j89
References
More chainguard-dev Apko vulnerabilities
- TI-2026-20302 apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams CVSS 3.1HIGH 7.5
- TI-2026-20284 apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base CVSS 3.1HIGH 7.5
Sources
- CVE-2026-25122 · CVE Program
- CVE-2026-25122 · NVD
- FIRST EPSS
- GHSA-6p9p-q6wh-9j89 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences