CVE-2026-54581

mport bootstrap index fetch can continue after hash verification failure

Published Sep 17, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The mport_fetch_bootstrap_index() function in MidnightBSD’s mport package manager allowed the command to return success even when hash verification of the bootstrap index failed. This flaw enabled an attacker capable of altering the bootstrap index or its transport path to provide an unverified or tampered index, thereby allowing the installation of malicious packages during system bootstrapping. The vulnerability can thus lead to a compromise of the integrity of the entire system if malicious code is injected through the bootstrap process.

Affected Systems

The vulnerability affects MidnightBSD mport versions prior to 2.7.8. It is resolved in release 2.7.8. Only the MidnightBSD package manager is impacted; no other vendors or products are listed.

Risk and Exploitability

The CVSS score of 8.3 indicates high severity. The EPSS score is below 1%, suggesting a low probability of exploitation in the short term, and the issue is not currently listed in the CISA KEV catalog. The likely attack vector is a network attacker or a compromised mirror that can modify or substitute the bootstrap index. Successful exploitation would require the attacker to supply altered index data that bypasses hash checks, after which mport would continue the bootstrap installation process with that corrupted data, potentially installing compromised packages.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MidnightBSD mport to version 2.7.8 or later, which contains the hash verification fix.
  • Configure mport to use only trusted mirror hosts and enforce TLS transport to prevent tampering of the bootstrap index during transit.
  • If bootstrap packages are not required, disable bootstrap installation or restrict to a limited set of signed mirrors to reduce the attack surface.

Generated by OpenCVE AI on September 19, 2026 at 02:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Midnightbsd
Midnightbsd mport
Vendors & Products Midnightbsd
Midnightbsd mport
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title mport bootstrap index fetch can continue after hash verification failure
Weaknesses CWE-345
CWE-347
References
Metrics cvssV4_0

{'score': 8.3, 'vector': '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'}

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-347

    Improper Verification of Cryptographic Signature

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 17, 2026, 7:17 PM
Reserved
Jun 15, 2026, 7:15 PM
Status
Deferred
Published
Sep 17, 2026, 5:16 PM
Modified
Sep 17, 2026, 9:15 PM