---
id: CVE-2026-54581
title: mport is the MidnightBSD Package Manager
summary: >-
  mport is the MidnightBSD Package Manager. Prior to 2.7.8, the
  mport_fetch_bootstrap_index() function in libmport/fetch.c could return
  success when bootstrap index hash verification encountered a missing or
  invalid hash because the failur…
severity: high
cvss: 8.3
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N'
cwe:
  - CWE-345
  - CWE-347
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-54581'
references:
  - url: >-
      https://github.com/MidnightBSD/mport/commit/64ebf3f60dc3df72a3b47fbb20a7f8072c0a0f5e
    label: security-advisories@github.com
  - url: >-
      https://github.com/MidnightBSD/mport/commit/b3e11ba078351402082a881209ee6fda5d332e3d
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/pull/134'
    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-895r-rv8j-7g23
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-17T19:17:03.686817Z'
cvssSource: cna
ingestedAt: '2026-09-17T17:23:30.629Z'
epss: 0.00218
epssPercentile: 0.10886
---

## Overview

mport is the MidnightBSD Package Manager. Prior to 2.7.8, the mport_fetch_bootstrap_index() function in libmport/fetch.c could return success when bootstrap index hash verification encountered a missing or invalid hash because the failure path did not preserve a fatal result. A network attacker or compromised mirror able to alter bootstrap index content or its transport path could therefore cause mport to proceed with an unverified or tampered bootstrap package index. This issue is fixed in version 2.7.8.

## Remediation

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