Skip to main content

MidnightBSD mport CVE-2026-54581

| EUVDEUVD-2026-82318 HIGH
Insufficient Verification of Data Authenticity (CWE-345)
2026-09-17 GitHub_M
8.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain on-path or compromised-mirror position
  2. Delivery
    Serve tampered bootstrap index with missing/invalid hash
  3. Exploit
    Verification failure not preserved as fatal
  4. Execution
    mport proceeds with unverified index
  5. Impact
    Malicious/tampered package data trusted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
Exploitation Conditions

Exploitation requires the attacker to be able to alter the bootstrap index content or its transport path - i.e., control of a MidnightBSD package mirror or a man-in-the-middle/on-path network position between the victim and the mirror (this is the AT:P attack requirement). No authentication (PR:N) and no user interaction (UI:N) are needed once that position is held. The flaw only manifests when the fetched bootstrap index has a missing or invalid hash, which mport then wrongly treats as verified. Limiting factors: the privileged network/mirror position needed makes opportunistic mass exploitation impractical, and only MidnightBSD systems running mport prior to 2.7.8 are affected.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L, score 8.3) correctly characterizes this as an integrity-centric flaw: no confidentiality impact (VC:N), high integrity impact (VI:H) from installing a tampered package index, and low availability impact (VA:L). The AT:P (attack requirements present) is the critical caveat - exploitation is NOT trivially remote; it requires the attacker to already hold an on-path/man-in-the-middle position or control a mirror, which meaningfully lowers real-world likelihood versus the headline 8.3. No EPSS score, no CISA KEV listing, and no public exploit code were provided, so exploitation status is 'no public exploit identified at time of analysis.' This is a genuine supply-chain integrity weakness (a verification bypass in a package manager), but the requirement for a privileged network position makes it a targeted-scenario risk rather than a mass-exploitable one. Note also a data conflict: the input Tag 'Information Disclosure' contradicts the CVSS vector, which explicitly sets VC:N (no confidentiality impact) - this is an integrity/authenticity issue (CWE-345), not information disclosure.

Exploit ScenarioDerived

An attacker who has compromised a MidnightBSD package mirror, or who can intercept mport's fetch traffic (e.g., via ARP spoofing or a malicious network), substitutes a tampered bootstrap package index whose hash is missing or invalid. Because mport_fetch_bootstrap_index() failed to preserve the fatal result on a bad/absent hash, mport treats verification as successful and proceeds to use the unverified index, opening the door to malicious package resolution. No public exploit code is identified, and the attack requires the on-path/mirror position reflected by AT:P.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

MidnightBSD's mport package manager prior to 2.7.8 can accept a tampered bootstrap package index as verified, because the hash-check failure path in mport_fetch_bootstrap_index() (libmport/fetch.c) fails to preserve a fatal result when the fetched index has a missing or invalid hash. An unauthenticated attacker who controls the package mirror or occupies an on-path/man-in-the-middle network position (the CVSS v4.0 AT:P prerequisite) can therefore have mport proceed with an unverified index, corrupting the integrity of packages the system later trusts and installs - the vendor vector scores 8.3 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L), emphasizing high integrity impact with no confidentiality impact. No public exploit code has been identified at time of analysis and the flaw is not confirmed actively exploited (CISA KEV), but the privileged network/mirror position required limits practical mass exploitation to targeted or upstream-mirror compromise scenarios. The issue is fixed in mport 2.7.8.

RemediationAI

Upgrade mport to version 2.7.8 or later - the vendor-released patch that fixes CVE-2026-54581 - using the release at https://github.com/MidnightBSD/mport/releases/tag/2.7.8 and the vendor advisory GHSA-895r-rv8j-7g23; a point upgrade of mport itself is low-risk but must be performed before any further bootstrap index refresh from an untrusted path. If immediate upgrade is not possible, compensating controls must target the attack prerequisite (control of the mirror or the transport path): restrict mport to a single trusted, operator-controlled mirror over an authenticated channel and avoid plaintext HTTP mirror URLs (trade-off: reduced mirror redundancy and possible availability loss if that mirror is down); where feasible, terminate package fetches over an authenticated/encrypted transport (TLS or equivalent) with certificate validation so an on-path attacker cannot substitute index content (trade-off: requires mirror-side TLS support, which MidnightBSD mirrors may not offer); and prefer mirror sources reachable over a trusted network segment or VPN rather than the open internet. Because the bug only manifests when a hash is missing or invalid, independent out-of-band verification of the bootstrap index (comparing a published hash obtained over a separate trusted channel) can detect tampering before packages are trusted, though it adds manual operational overhead. Note that the SHA-256/index-hash messaging fix at commits 64ebf3f and b3e11ba is part of the same remediation set, so partial cherry-picking of only the message change without the fatal-result fix does not address the vulnerability.

Affected VersionsENISA

mport < 2.7.8

Affected Packages

euvd mport fix: 2.7.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mport is the native package manager for MidnightBSD, built around libmport; the affected routine, mport_fetch_bootstrap_index() in libmport/fetch.c, retrieves and validates the bootstrap package index that seeds the package database. The root cause is CWE-345 (Insufficient Verification of Data Authenticity): when hash verification of the fetched index encountered a missing or invalid hash, the failure path did not carry a fatal result forward, so the function could return success and let mport consume an unverified or tampered index. The authenticating technology here is an integrity hash applied to the bootstrap index; the bug is in the control flow around that comparison/its return value rather than in the cryptographic primitive itself. The public PR diff shows a supporting hardening change to the diagnostic message so a NULL hash is rendered as "(null)" instead of being passed unsafely to mport_call_msg_cb(), confirming the crash/failure-path handling around the hash check was the area under repair. Per the CPE cpe:2.3:a:midnightbsd:mport:*:*:*:*:*:*:*:* every mport release before 2.7.8 is in scope. The vendor's own CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L) frames this as an integrity-centric flaw: no confidentiality loss, high integrity loss from installing a tampered bootstrap index, and low availability impact.

Know when Mport gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.3 HIGH
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
vuln.today AI 6.5 MEDIUM

AC:H because a man-in-the-middle or compromised-mirror position is required; PR:N/UI:N as no auth or interaction is needed; C:N per no confidentiality impact, I:H for tampered package index, A:L for possible package breakage.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 17, 2026 - 18:19 EUVD
CVE Published
Sep 17, 2026 - 16:45 cve.org
HIGH 8.3

DescriptionCVE.org

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.

Technical POC Analysis

CWE-345 (Insufficient Verification of Data Authenticity), with the advisory also tagging CWE-347 (Improper Verification of Cryptographic Signature).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

MidnightBSD hosts that rely on the mport package manager can be induced to accept a tampered package index as verified, causing the system to trust and install software that has not been integrity-checked. Exploiting this requires an attacker to control the package mirror or sit on the network path between a host and that mirror, so exposure is concentrated in organizations running MidnightBSD and pulling updates across third-party, shared, or otherwise untrusted network paths. Confidentiality is not impacted, but the integrity of installed software is, which can undermine the trustworthiness of systems that downstream teams and processes depend on.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified in the structured data at time of analysis, although the advisory description states the issue is corrected in mport 2.7.8, so upgrading to 2.7.8 or later is the primary remediation where that release is available. Interim mitigations: retrieve package indexes only over authenticated TLS from an internally controlled mirror, validate index hashes out-of-band before mport treats them as verified, block mport bootstrap/index traffic from traversing untrusted or on-path network segments and proxies, monitor file integrity of installed packages and mirror contents, and audit hosts for unexpected or unauthorized package installations.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
MidnightBSD is a niche BSD fork; mport serves its small user base
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Mport

View all
CVE-2026-54580 HIGH
8.3 Sep 17

Package-index corruption and denial of package-management operations affect MidnightBSD mport before 2.7.8 when a malici

CVE-2026-54583 HIGH
8.3 Sep 17

Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who con

CVE-2026-54586 MEDIUM
6.0 Sep 17

On-path tampering with package-fetch traffic in MidnightBSD's mport package manager lets a network-positioned attacker s

CVE-2026-54585 MEDIUM
6.0 Sep 17

Path traversal in MidnightBSD mport before 2.7.8 allows a crafted package manifest to make the privileged sample-file ha

CVE-2026-54582 MEDIUM
6.0 Sep 17

Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace

CVE-2026-54575 MEDIUM
5.8 Sep 17

Path-racing and shell-invocation weaknesses in the MidnightBSD mport package manager (all versions prior to 2.7.8) let a

CVE-2026-54576 MEDIUM
5.8 Sep 17

Filesystem integrity compromise in MidnightBSD's mport package manager (versions prior to 2.7.8): a local user who alrea

CVE-2026-54587 MEDIUM
5.8 Sep 17

Symlink following and dot-dot path traversal in MidnightBSD mport prior to 2.7.8 lets a local attacker who can already w

CVE-2026-54584 MEDIUM
5.3 Sep 21

MidnightBSD's mport package manager before 2.7.8 trusts the TMPDIR environment variable when extracting package metafile

CVE-2026-54579 LOW
2.3 Sep 17

Spoofed or injected ICMP echo replies can steer mport's mirror-latency selection toward an attacker-chosen mirror and, i

CVE-2026-54577 LOW
2.0 Sep 17

MidnightBSD's mport package manager, in all versions prior to 2.7.8, mis-parses the argument list for its 'audit' subcom

CVE-2026-54578 LOW
2.0 Sep 17

Checksum verification in MidnightBSD's mport package manager before 2.7.8 can silently continue after a hashing failure,

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy