{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.7.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b3e11ba078351402082a881209ee6fda5d332e3d"
            },
            {
              "fixed": "899c8fe2d3ceb25d899e70dbd0c7744b7d7a0946"
            }
          ],
          "repo": "https://github.com/midnightbsd/mport",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-ffqj-j42r-747w"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-354",
      "CWE-755"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54580.json"
  },
  "details": "mport is the MidnightBSD Package Manager. Prior to 2.7.8, libmport/util.c did not make every truncated, corrupt, or failed zstd stream fatal in mport_decompress_zstd(), and libmport/fetch.c did not consistently propagate those failures to index-fetch callers. A malicious or faulty mirror could supply compressed package index data that caused ZSTD_decompressStream() or an output write to fail while leaving partial index output available for later use, resulting in package-index integrity loss or denial of service. This issue is fixed in version 2.7.8.",
  "id": "CVE-2026-54580",
  "modified": "2026-09-19T03:30:16.707284732Z",
  "published": "2026-09-17T16:51:29.785Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/MidnightBSD/mport/releases/tag/2.7.8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54580.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/MidnightBSD/mport/security/advisories/GHSA-ffqj-j42r-747w"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54580"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/commit/b3e11ba078351402082a881209ee6fda5d332e3d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/pull/135"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "mport index decompression can leave partial or corrupt index data after zstd failures"
}