CVE-2026-54582: MidnightBSD mport · External Control of File Name or Path
Affects MidnightBSD mportSource CVE Database V5
Not known to be exploited · CVSS 6.0 Medium : upgrade to 2.7.8 when convenient.
Data as of 1 Nov 2026, 11:03 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.7.8
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Nov 2026.
What to do
Upgrade mport and midnightbsd/mport to 2.7.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| MidnightBSDmport | Affected
| Fixed in
|
GitHubmidnightbsd/mportpkg:github/midnightbsd/mportOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade mport to version 2.7.8 or later, where the vulnerability is fixed. Avoid using the force option during package installation unless absolutely necessary, as it bypasses the file conflict checks. Patch status is confirmed fixed in 2.7.8.
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.
References
- github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx (opens in a new tab)
- github.com/MidnightBSD/mport/pull/131 (opens in a new tab)
- github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39 (opens in a new tab)
- github.com/MidnightBSD/mport/releases/tag/2.7.8 (opens in a new tab)