mport trusts environment-controlled temporary directories in privileged metadata extraction
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-73 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MidnightBSD | mport | before 2.7.8 | 2.7.8 | Patch available | CNA |
- mport VendorMidnightBSD Affected before 2.7.8 Fixed in 2.7.8 Patch available CNA
Remediation
- Fix · CNA mport (MidnightBSD) Fixed in 2.7.8
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54584
- 2026-11-06 Affected versions changed · Red Hat
- 2026-11-06 CVSS score added · Red Hat
References
More MidnightBSD vulnerabilities
- TI-2008-04392 The TCP implementation in (1) Linux, (2) platforms based on BSD Unix, (3) Microsoft… CVSS 2.0HIGH 7.1
- TI-2009-00656 The pf_test_rule function in OpenBSD Packet Filter (PF), as used in OpenBSD 4.2 through… CVSS 2.0HIGH 7.8
- TI-2026-39418 mport package bundle downloads allow unsafe destination filenames CVSS 4.0HIGH 8.3
- TI-2026-39415 mport index decompression can leave partial or corrupt index data after zstd failures CVSS 4.0HIGH 8.3
- TI-2026-39416 mport bootstrap index fetch can continue after hash verification failure CVSS 4.0HIGH 8.3
- TI-2026-39421 mport permits repository and package mirror fetches over insecure transport CVSS 4.0MEDIUM 6.0
Sources
- CVE-2026-54584 · CVE Program
- CVE-2026-54584 · NVD
- FIRST EPSS
- CVE-2026-54584 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences