{"id":"CVE-2026-54582","aliases":["CVE-2026-54582"],"related":[],"kind":"vulnerability","state":"published","title":"mport package installation can overwrite existing unmanaged or differently owned files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-17T16:50:40.434Z","modified":"2026-09-17T21:15:06.427Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6,"rating":"MEDIUM"}],"cwes":["CWE-73","CWE-668"],"affected":[{"ranges":[{"version":"< 2.7.8","status":"affected"}],"vendor":"MidnightBSD","product":"mport","source":"cvelist"}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/pull/131","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-17T19:15:39.206Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54582","url":"https://www.cve.org/CVERecord?id=CVE-2026-54582","licence":"CVE Terms of Use","modified":"2026-09-17T19:15:52.035Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54582","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54582","licence":"Public domain","modified":"2026-09-17T21:15:06.427Z"}],"updatedAt":"2026-11-25T22:59:39.282Z","epss":{"score":0.00531,"percentile":0.46322,"date":"2026-12-02T12:00:21.000Z"}}