Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain on-path or compromised-mirror position
-
DeliveryServe tampered bootstrap index with missing/invalid hash
-
ExploitVerification failure not preserved as fatal
-
Executionmport proceeds with unverified index
-
ImpactMalicious/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Package-index corruption and denial of package-management operations affect MidnightBSD mport before 2.7.8 when a malici
Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who con
On-path tampering with package-fetch traffic in MidnightBSD's mport package manager lets a network-positioned attacker s
Path traversal in MidnightBSD mport before 2.7.8 allows a crafted package manifest to make the privileged sample-file ha
Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace
Path-racing and shell-invocation weaknesses in the MidnightBSD mport package manager (all versions prior to 2.7.8) let a
Filesystem integrity compromise in MidnightBSD's mport package manager (versions prior to 2.7.8): a local user who alrea
Symlink following and dot-dot path traversal in MidnightBSD mport prior to 2.7.8 lets a local attacker who can already w
MidnightBSD's mport package manager before 2.7.8 trusts the TMPDIR environment variable when extracting package metafile
Spoofed or injected ICMP echo replies can steer mport's mirror-latency selection toward an attacker-chosen mirror and, i
MidnightBSD's mport package manager, in all versions prior to 2.7.8, mis-parses the argument list for its 'audit' subcom
Checksum verification in MidnightBSD's mport package manager before 2.7.8 can silently continue after a hashing failure,
EUVD-2026-82318
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB