CVE-2026-54582 PUBLISHED

mport package installation can overwrite existing unmanaged or differently owned files

Assigner: GitHub_M
Reserved: 15.06.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Metrics

CVSS 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
CVSS Score: 6

Product Status

Vendor MidnightBSD
Product mport
Versions
  • Version < 2.7.8 is affected

References

Problem Types

  • CWE-73: External Control of File Name or Path CWE
  • CWE-668: Exposure of Resource to Wrong Sphere CWE