{"id":"CVE-2026-54582","published":"2026-09-17T16:50:40Z","modified":"2026-09-17T19:15:52Z","title":"mport package installation can overwrite existing unmanaged or differently owned files","vendor":"MidnightBSD","product":"mport","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00554,"percentile":0.47163,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/131","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":9.43},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"midnightbsd","affectedVersions":[{"vendor":"MidnightBSD","product":"mport","versions":["< 2.7.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-17T19:15:39.206598Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-82321","exploited":false,"provenance":"source"}}