Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-54582mport package installation can overwrite existing unmanaged or differently owned files
Medium 6.0
In plain English
A medium-severity security flaw in mport from MidnightBSD. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities).
Official description
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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MidnightBSD | mport | < 2.7.8 |
Weakness: CWE-73, CWE-668 · Vector: 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
References
- https://github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx x_refsource_CONFIRM
- https://github.com/MidnightBSD/mport/pull/131 x_refsource_MISC
- https://github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39 x_refsource_MISC
- https://github.com/MidnightBSD/mport/releases/tag/2.7.8 x_refsource_MISC