CVE-2026-54582
mport is the MidnightBSD Package Manager. Prior to 2.7.8, package …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39
- github.com/MidnightBSD/mport/pull/131
- github.com/MidnightBSD/mport/releases/tag/2.7.8
- github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx
- nvd.nist.gov/vuln/detail/CVE-2026-54582
- cve.org/CVERecord?id=CVE-2026-54582
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.