Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Impact | This is a genuine but sharply gated integrity flaw, not a high-urgency remote threat. The vendor's CVSS 4.0 vector (VI:H, VA:L, VC:N) correctly captures the impact - arbitrary file overwrite and package-database inconsistency with no data disclosure - but its AV:N is questionable: mport package installation is a local, operator-initiated action, so AV:L with required user interaction better reflects reality. The AT:P (attack requirement) and UI:P/UI:R metrics are the true story: exploitation depends on a privileged operator actively installing an attacker-crafted or conflicting package, AND on a colliding non-directory file already existing on disk. No EPSS score, no CISA KEV listing, and no public proof-of-concept were provided - the referenced GitHub advisory, PR #131, commit, and 2.7.8 release are the FIX, not exploit code. Net: a legitimate defect worth patching on affected MidnightBSD hosts, but the combination of privileged-install prerequisite, required file collision, and the product's tiny deployment footprint places this well below internet-facing critical bugs. The 'Authentication Bypass' tag is inaccurate - this is a file-conflict/integrity issue (CWE-73), with no authentication mechanism bypassed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace existing files on disk that are owned by another package or unmanaged by mport, compromising local filesystem integrity and package database consistency. The flaw requires user interaction (UI:P) and specific attack requirements (AT:P), and is unauthenticated according to the CVSS vector (PR:N). No public exploit was identified at time of analysis; the vendor fixed the issue in version 2.7.8.
RemediationAI
Upgrade to MidnightBSD mport 2.7.8 or later; the vendor-released patch is available at https://github.com/MidnightBSD/mport/releases/tag/2.7.8 and via commit c643312d149dcc994957dbafa8f6f6b61e945e39. The fix enforces the MPORT_PRECHECK_FILE_CONFLICTS check during installation unless the operator explicitly uses -f/--force. As a compensating control, avoid installing untrusted or crafted packages with root privileges, and do not use the force flag for such packages, as it disables the conflict check. Administrators should also review the package database (assets table) for unexpected file ownership after any suspected compromise. Since the flaw requires a user to initiate installation of a malicious package (user interaction), restricting package installation to trusted sources reduces exposure.
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
The vulnerability is a CWE-73 (External Control of File Name or Path) issue in the MidnightBSD mport package manager. Prior to version 2.7.8, the package installation preflight routine in libmport/check_preconditions.c did not include the MPORT_PRECHECK_FILE_CONFLICTS flag, and the corresponding check_file_conflicts() logic was absent from libmport/install_primative.c and libmport/mport_private.h. As a result, when a package was installed, the installer failed to verify whether incoming non-directory assets (e.g., files, owners/modes, shell scripts, samples, info files) already existed on disk. A crafted or conflicting package could therefore overwrite a file already owned by another package or a file unmanaged by mport, and the package database (assets table in the mport SQLite database) would not be updated to reflect the new ownership, leading to database inconsistency. The fix adds a check that queries the stub.assets table for the package's assets, constructs the full path relative to mport->root, uses lstat() to determine if the path exists and is not a directory, and then queries the assets table to see if another package owns it. If so, installation aborts with an error unless the operator explicitly passes -f (mport->force). The check is bypassed only when force is set, which is intended for advanced users.
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:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
mport is the MidnightBSD Package Manager. Prior to 2.7.8, package installation lacked a preflight check for incoming non-directory assets that already existed on disk. The affected logic across libmport/check_preconditions.c, libmport/install_primative.c, and libmport/mport_private.h did not apply MPORT_PRECHECK_FILE_CONFLICTS, so a crafted or conflicting package could overwrite a file owned by another package or unmanaged by mport. The check is bypassed only when the operator explicitly enables mport->force. Privileged installation without that override could compromise local filesystem integrity and package database consistency. This issue is fixed in version 2.7.8.
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
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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
MidnightBSD's mport package manager prior to 2.7.8 can accept a tampered bootstrap package index as verified, because th
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
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-82321
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB