{"id":"CVE-2026-54584","aliases":["CVE-2026-54584"],"related":[],"kind":"vulnerability","state":"published","title":"mport trusts environment-controlled temporary directories in privileged metadata extraction","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-21T14:05:48.447Z","modified":"2026-09-25T20:17:08.070Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-73","CWE-377"],"affected":[{"ranges":[{"version":"< 2.7.8","status":"affected"}],"vendor":"MidnightBSD","product":"mport","source":"cvelist"}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mq","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/pull/123","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/commit/3790fa49a36cb085f48b204ef189fb82bbee621a","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-25T19:23:03.329Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54584","url":"https://www.cve.org/CVERecord?id=CVE-2026-54584","licence":"CVE Terms of Use","modified":"2026-09-25T19:23:13.124Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54584","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54584","licence":"Public domain","modified":"2026-09-25T20:17:08.070Z"}],"updatedAt":"2026-11-25T22:59:40.331Z","epss":{"score":0.00283,"percentile":0.22395,"date":"2026-12-02T12:00:21.000Z"}}