# CVE-2026-54582: mport package installation can overwrite existing unmanaged or differently owned files

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-02)
- Published: 2026-09-17T16:50:40.434Z
- Modified: 2026-09-17T21:15:06.427Z
- Weaknesses: CWE-73, CWE-668
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MidnightBSD mport: < 2.7.8

## References

- <https://github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx>
- <https://github.com/MidnightBSD/mport/pull/131>
- <https://github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39>
- <https://github.com/MidnightBSD/mport/releases/tag/2.7.8>

## Sources

- CVE List: [CVE-2026-54582](https://www.cve.org/CVERecord?id=CVE-2026-54582), CVE Terms of Use, modified 2026-09-17
- NVD: [CVE-2026-54582](https://nvd.nist.gov/vuln/detail/CVE-2026-54582), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2026-54582 · Whole record: https://cve.day/CVE-2026-54582.json · Rebuilt by cve.day 2026-11-25T22:59:39.282Z
