{"id":"CVE-2026-54174","aliases":["CVE-2026-54174","GHSA-fpg8-7664-jc5q","GO-2026-5968"],"related":["CGA-j75j-mqr9-628w"],"kind":"vulnerability","state":"published","title":"melange: Incomplete package integrity verification allows data section substitution","summary":"melange allows users to build apk packages using declarative pipelines. Apko prior to version 1.2.9, corresponding to melange prior to version 0.50.4, verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the data section hash (the actual package files that get installed). An attacker who could compromise a mirror, poison a cache, or MITM a package fetch could substitute arbitrary file contents while the control hash check still passed. Apko version 1.2.9 and melange version 0.50.4 contain a fix.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"melange allows users to build apk packages using declarative pipelines. Apko prior to version 1.2.9, corresponding to melange prior to version 0.50.4, verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the data section hash (the actual package files that get installed). An attacker who could compromise a mirror, poison a cache, or MITM a package fetch could substitute arbitrary file contents while the control hash check still passed. Apko version 1.2.9 and melange version 0.50.4 contain a fix.","source":"cvelist"},{"lang":"en","text":"Previously, Apko verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the data section hash (the actual package files that get installed). An attacker who could compromise a mirror, poison a cache, or MITM a package fetch could substitute arbitrary file contents while the control hash check still passed.","format":"markdown","source":"ghsa"},{"lang":"en","text":"melange: Incomplete package integrity verification allows data section substitution in chainguard.dev/apko","format":"markdown","source":"go"}],"published":"2026-07-10T21:43:05.000Z","modified":"2026-09-30T19:57:08.043Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.3,"rating":"HIGH"}],"cwes":["CWE-345","CWE-354"],"affected":[{"ranges":[{"version":"< 0.50.4","status":"affected"}],"vendor":"chainguard-dev","product":"melange","source":"cvelist"},{"ranges":[{"version":"< 1.2.9","status":"affected"}],"vendor":"chainguard-dev","product":"apko","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.9"}],"ecosystem":"Go","package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.50.4"}],"ecosystem":"Go","package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.9"}],"ecosystem":"Go","package":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.50.4"}],"ecosystem":"Go","package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"go"}],"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-fpg8-7664-jc5q","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/chainguard-dev/melange","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-14T16:18:49.717Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54174","url":"https://www.cve.org/CVERecord?id=CVE-2026-54174","licence":"CVE Terms of Use","modified":"2026-09-14T16:19:01.111Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fpg8-7664-jc5q","url":"https://github.com/advisories/GHSA-fpg8-7664-jc5q","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:51.801Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5968","url":"https://pkg.go.dev/vuln/GO-2026-5968","licence":"CC-BY-4.0","modified":"2026-07-22T20:59:39.183Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54174","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54174","licence":"Public domain","modified":"2026-09-30T19:57:08.043Z"}],"updatedAt":"2026-11-25T22:59:38.150Z","epss":{"score":0.00105,"percentile":0.01143,"date":"2026-12-01T12:00:22.000Z"}}