CVE-2026-54584: MidnightBSD mport · External Control of File Name or Path
Affects MidnightBSD mportSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.7.8 when convenient.
Data as of 5 Nov 2026, 00:01 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 40% 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:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 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 5 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 has been patched by ignoring unsafe TMPDIR values and rejecting empty TMPDIR in privileged contexts. No additional mitigation is required once the patch is applied.
Description
mport is the MidnightBSD Package Manager. mport before 2.7.8 used TMPDIR while extracting package metafiles, including when running as root or in setuid/setgid contexts. An attacker able to control the environment for a privileged mport invocation could redirect temporary metadata extraction to an attacker-controlled location. PR 123 ignores unsafe TMPDIR values in privileged contexts and rejects empty TMPDIR. This issue has been patched in version 2.7.8.
References
- github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mq (opens in a new tab)
- github.com/MidnightBSD/mport/pull/123 (opens in a new tab)
- github.com/MidnightBSD/mport/commit/3790fa49a36cb085f48b204ef189fb82bbee621a (opens in a new tab)
- github.com/MidnightBSD/mport/releases/tag/2.7.8 (opens in a new tab)