---
id: CVE-2026-54580
title: mport is the MidnightBSD Package Manager
summary: >-
  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 t…
severity: high
cvss: 8.3
cvssVector: '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'
cwe:
  - CWE-354
  - CWE-755
vendor: MidnightBSD
product: mport
affected:
  - mport < 2.7.8
published: '2026-09-17'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T21:15:06.427'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54580'
references:
  - url: >-
      https://github.com/MidnightBSD/mport/commit/b3e11ba078351402082a881209ee6fda5d332e3d
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/pull/135'
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/releases/tag/2.7.8'
    label: security-advisories@github.com
  - url: >-
      https://github.com/MidnightBSD/mport/security/advisories/GHSA-ffqj-j42r-747w
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
cvssSource: cna
ingestedAt: '2026-09-17T17:23:30.628Z'
epss: 0.0025
epssPercentile: 0.16699
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
