# CVE-2026-54584: mport trusts environment-controlled temporary directories in privileged metadata extraction

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-21 · Modified: 2026-09-25
- Record: https://cvemate.com/vulnerability/CVE-2026-54584 · JSON: https://cvemate.com/vulnerability/CVE-2026-54584/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.283%, percentile 22.377%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- midnightbsd mport: \< 2.7.8

## References

- <https://github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mq>
- <https://github.com/MidnightBSD/mport/pull/123>
- <https://github.com/MidnightBSD/mport/commit/3790fa49a36cb085f48b204ef189fb82bbee621a>
- <https://github.com/MidnightBSD/mport/releases/tag/2.7.8>

---

Data as of 2026-12-05T08:01:06.359Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
