Skip to content
Heist/ feed
Back to feed
High

melange: Incomplete package integrity verification allows data section substitution

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-54174
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 02:20 UTC · Revision 1

Source evidence

melange: Incomplete package integrity verification allows data section substitution

core-osv · Original source

Published 11 Sept 2026, 21:05 UTC

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.

osv:CVE-2026-54174
Complete source record
{
  "id": "4469ab4904560e527bdccfd47db579e019fc328ff3d2ecad6677bab8d9acb7f3",
  "url": "https://osv.dev/vulnerability/CVE-2026-54174",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2026-54174",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-54174",
      "aliases": [
        "CVE-2026-54174",
        "GHSA-fpg8-7664-jc5q",
        "GO-2026-5968"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/chainguard-dev/melange",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2582b68ddc8ca21b08bf7b244a2ff60bcbcee88f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.50.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.50.4"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.50.3",
            "v0.50.2",
            "v0.50.1",
            "v0.50.0",
            "v0.49.0",
            "v0.48.2",
            "v0.48.1",
            "v0.48.0",
            "v0.47.0",
            "v0.46.1",
            "v0.46.0",
            "v0.45.4",
            "v0.45.3",
            "v0.45.2",
            "v0.45.1",
            "v0.45.0",
            "v0.44.0",
            "v0.43.7",
            "v0.43.6",
            "v0.43.5",
            "v0.43.4",
            "v0.43.3",
            "v0.43.2",
            "v0.43.1",
            "v0.43.0",
            "v0.42.0",
            "v0.41.1",
            "v0.41.0",
            "v0.40.5",
            "v0.40.4",
            "v0.40.3",
            "v0.40.2",
            "v0.40.1",
            "v0.40.0",
            "v0.39.0",
            "v0.38.1",
            "v0.38.0",
            "v0.37.5",
            "v0.37.4",
            "v0.37.3",
            "v0.37.2",
            "v0.37.1",
            "v0.37.0",
            "v0.36.0",
            "v0.35.1",
            "v0.35.0",
            "v0.34.3",
            "v0.34.2",
            "v0.34.1",
            "v0.34.0",
            "v0.33.2",
            "v0.33.1",
            "v0.33.0",
            "v0.32.0",
            "v0.31.9",
            "v0.31.8",
            "v0.31.7",
            "v0.31.6",
            "v0.31.5",
            "v0.31.4",
            "v0.31.3",
            "v0.31.2",
            "v0.31.1",
            "v0.31.0",
            "v0.30.6",
            "v0.30.5",
            "v0.30.4",
            "v0.30.3",
            "v0.30.2",
            "v0.30.1",
            "v0.30.0",
            "v0.29.7",
            "v0.29.6",
            "v0.29.5",
            "v0.29.4",
            "v0.29.3",
            "v0.29.2",
            "v0.29.1",
            "v0.29.0",
            "v0.28.0",
            "v0.27.0",
            "v0.26.13",
            "v0.26.12",
            "v0.26.11",
            "v0.26.10",
            "v0.26.9",
            "v0.26.8",
            "v0.26.7",
            "v0.26.6",
            "v0.26.5",
            "v0.26.4",
            "v0.26.3",
            "v0.26.2",
            "v0.26.1",
            "v0.26.0",
            "v0.25.1",
            "v0.25.0",
            "v0.24.0",
            "v0.23.17",
            "v0.23.16",
            "v0.23.15",
            "v0.23.14",
            "v0.23.13",
            "v0.23.12",
            "v0.23.11",
            "v0.23.10",
            "v0.23.9",
            "v0.23.8",
            "v0.23.7",
            "v0.23.6",
            "v0.23.5",
            "v0.23.4",
            "v0.23.3",
            "v0.23.2",
            "v0.23.1",
            "v0.23.0",
            "v0.22.2",
            "v0.22.1",
            "v0.22.0",
            "v0.21.2",
            "v0.21.1",
            "v0.21.0",
            "v0.20.1",
            "v0.20.0",
            "v0.19.5",
            "v0.19.4",
            "v0.19.3",
            "v0.19.1",
            "v0.19.2",
            "v0.19.0",
            "v0.18.3",
            "v0.18.2",
            "v0.18.1",
            "v0.18.0",
            "v0.17.7",
            "v0.17.6",
            "v0.17.5",
            "v0.17.4",
            "v0.17.3",
            "v0.17.2",
            "v0.17.1",
            "v0.17.0",
            "v0.16.0",
            "v0.15.14",
            "v0.15.13",
            "v0.15.12",
            "v0.15.7",
            "v0.15.11",
            "v0.15.10",
            "v0.15.9",
            "v0.15.8",
            "v0.15.6",
            "v0.15.5",
            "v0.15.4",
            "v0.14.8",
            "v0.15.3",
            "v0.15.2",
            "v0.14.9",
            "v0.15.1",
            "v0.15.0",
            "v0.14.11",
            "v0.14.10",
            "v0.14.7",
            "v0.14.6",
            "v0.14.5",
            "v0.14.4",
            "v0.14.3",
            "v0.14.2",
            "v0.14.1",
            "v0.14.0",
            "v0.13.7",
            "v0.13.6",
            "v0.13.5",
            "v0.13.4",
            "v0.13.3",
            "v0.13.2",
            "v0.13.1",
            "v0.13.0",
            "v0.12.1",
            "v0.12.0",
            "v0.11.6",
            "v0.11.5",
            "v0.11.4",
            "v0.11.3",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0",
            "v0.10.4",
            "v0.10.3",
            "v0.10.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.0",
            "v0.8.6",
            "v0.8.5",
            "v0.8.4",
            "v0.8.3",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.0",
            "v0.6.11",
            "v0.6.10",
            "v0.6.1",
            "v0.6.9",
            "v0.6.7",
            "v0.6.8",
            "v0.6.6",
            "v0.6.5",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.0",
            "v0.5.10",
            "v0.5.9",
            "v0.5.8",
            "v0.5.7",
            "v0.5.6",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.0",
            "v0.2.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54174.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.056090567Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54174.json",
        "https://github.com/chainguard-dev/melange/security/advisories/GHSA-fpg8-7664-jc5q",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-54174"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-345",
          "CWE-354"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.2.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54174.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-54174",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514224,
  "published_at": "2026-09-11T21:05:30.789+00:00"
}