{"cve":"CVE-2026-25122","nvd":{"published":"2026-02-04T19:16:14.960","modified":"2026-06-17T10:24:08.763","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5},"cwes":["CWE-770","CWE-400"],"references":["https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09","https://github.com/chainguard-dev/apko/security/advisories/GHSA-6p9p-q6wh-9j89"],"products":["chainguard:apko"],"source":"nvd","synced_at":"2026-10-19T22:22:27.261130201+00:00"},"epss":{"cve":"CVE-2026-25122","score":0.00129,"percentile":0.02477,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-6p9p-q6wh-9j89","url":"https://osv.dev/vulnerability/GHSA-6p9p-q6wh-9j89","summary":"apko affected by unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams ","modified":"2026-09-10T03:49:48.412365885Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","ranges":[">=0.14.8 <1.1.0"],"fixed":["1.1.0"]}]},{"id":"GO-2026-4406","url":"https://osv.dev/vulnerability/GO-2026-4406","summary":"apko affected by unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams in chainguard.dev/apko","modified":"2026-02-06T02:13:48.097733Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","ranges":[">=0.14.8 <1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}