CVE-2026-54584: mport trusts environment-controlled temporary directories in privileged metadata extraction
Vulnerability summary
CVE-2026-54584 is a medium (CVSS 5.3) External Control of File Name or Path vulnerability in midnightbsd mport. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 22.3% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 21-09-2026PublishedVulnerability first disclosed.
- 25-09-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
Decrease -0.18 pp
From 0.47% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-73External Control of File Name or PathThe product allows user input to control or influence paths or file names that are used in filesystem operations.
- CWE-377DEPRECATED: Insecure Temporary FileThis entry has been deprecated. It was focused only on the affected resource (temporary file) and not the behavior or mistake that produced the insecure temporary file, which caused confusion and incorrect mappings.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Midnightbsd1 product
- mport< 2.7.8
1 vendor · 1 product
References
4 links- github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mqX Refsource CONFIRM
- github.com/MidnightBSD/mport/pull/123X Refsource MISC
- github.com/MidnightBSD/mport/releases/tag/2.7.8X Refsource MISC