{"id":"CVE-2026-54584","state":"PUBLISHED","title":"mport trusts environment-controlled temporary directories in privileged metadata extraction","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.","publishedAt":"2026-09-21T14:05:48.447Z","updatedAt":"2026-09-25T19:23:13.124Z","severity":{"score":5.3,"label":"Medium","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["MidnightBSD mport"],"affected":[{"vendor":"MidnightBSD","product":"mport","versions":[{"version":"< 2.7.8","status":"affected"}]}],"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"],"weaknesses":["CWE-73","CWE-377"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54584.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54584","state":"PUBLISHED","datePublished":"2026-09-21T14:05:48.447Z","dateUpdated":"2026-09-25T19:23:13.124Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-15T19:15:27.344Z"},"containers":{"cna":{"title":"mport trusts environment-controlled temporary directories in privileged metadata extraction","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"MidnightBSD","product":"mport","versions":[{"version":"< 2.7.8","status":"affected"}]}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mq","name":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/123","name":"https://github.com/MidnightBSD/mport/pull/123","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/3790fa49a36cb085f48b204ef189fb82bbee621a","name":"https://github.com/MidnightBSD/mport/commit/3790fa49a36cb085f48b204ef189fb82bbee621a","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","name":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-73","lang":"en","description":"CWE-73: External Control of File Name or Path","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-377","lang":"en","description":"CWE-377: Insecure Temporary File","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-21T14:05:48.447Z"},"source":{"advisory":"GHSA-4vv3-3h8r-q6mq","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-25T19:23:03.329673Z","id":"CVE-2026-54584","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-25T19:23:13.124Z"}}]}}}