{"answers":{"affected":"3 open source packages ship an affected version, including chainguard.dev/apko. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25122 in the wild and no public exploit code.","fix":"Upgrade chainguard.dev/apko to 1.1.0 or later.","what":"CVE-2026-25122 is a medium-severity denial of service vulnerability in chainguard-dev apko, published on 4 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-25122 and fix it if it is affected.\n\nWhat it is: CVE-2026-25122 is a medium-severity denial of service vulnerability in chainguard-dev apko, published on 4 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-25122 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- chainguard.dev/apko (Go): affected from 0.14.8; fixed in 1.1.0\n- chainguard.dev/apko (Go): affected from 0.14.8; fixed in 1.1.0\n- chainguard.dev/apko (Go): affected from 0.14.8; fixed in 1.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25122/ (Markdown: https://insights.sbomify.com/CVE-2026-25122/index.md)","id":"CVE-2026-25122","markdown":"https://insights.sbomify.com/CVE-2026-25122/index.md","name":"CVE-2026-25122","record":{"aliases":["GHSA-6p9p-q6wh-9j89","GO-2026-4406","MINI-ffr3-9whc-cr26"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"OCI image builder","requires_auth":"none","summary":"Attackers can cause resource exhaustion and denial of service in apko by providing malicious APK streams that trigger unbounded gzip inflation.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"apko","vendor":"chainguard"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"apko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams","id":"CVE-2026-25122","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Homarr affected by Unauthenticated SSRF / Port-Scan Primitive via widget.app.ping","id":"CVE-2026-25123"},"packages":[{"ecosystem":"Go","fixed":["1.1.0"],"introduced":["0.14.8"],"last_affected":[],"package":"chainguard.dev/apko","purl":null,"source":"GHSA-6p9p-q6wh-9j89"},{"ecosystem":"Go","fixed":["1.1.0"],"introduced":["0.14.8"],"last_affected":[],"package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"GHSA-6p9p-q6wh-9j89"},{"ecosystem":"Go","fixed":["1.1.0"],"introduced":["0.14.8"],"last_affected":[],"package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"GO-2026-4406"}],"prev":{"headline":"apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base","id":"CVE-2026-25121"},"products":["apko"],"published":"2026-02-04","related":[{"cvss_score":7.5,"headline":"apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base","id":"CVE-2026-25121","kev_date_added":null,"published":"2026-02-04"},{"cvss_score":7.5,"headline":"apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams","id":"CVE-2026-25140","kev_date_added":null,"published":"2026-02-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-04","vendors":["chainguard-dev"]},"summary":"Attackers can cause resource exhaustion and denial of service in apko by providing malicious APK streams that trigger unbounded gzip inflation.","url":"https://insights.sbomify.com/CVE-2026-25122/"}