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

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-02)
- Published: 2026-09-21T14:05:48.447Z
- Modified: 2026-09-25T20:17:08.070Z
- Weaknesses: CWE-73, CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## 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>

## Sources

- CVE List: [CVE-2026-54584](https://www.cve.org/CVERecord?id=CVE-2026-54584), CVE Terms of Use, modified 2026-09-25
- NVD: [CVE-2026-54584](https://nvd.nist.gov/vuln/detail/CVE-2026-54584), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2026-54584 · Whole record: https://cve.day/CVE-2026-54584.json · Rebuilt by cve.day 2026-11-25T22:59:40.331Z
