{"id":"CVE-2026-54575","state":"PUBLISHED","title":"mport package fetch and clean paths are vulnerable to TOCTOU filesystem races","description":"mport is the MidnightBSD Package Manager. Prior to 2.7.8, privileged package fetch and cache-cleaning operations used race-prone path handling across libmport/fetch.c, libmport/clean.c, libmport/util.c, libmport/bundle_read_install_pkg.c, libmport/delete_primative.c, and libexec/mport.create/mport.create.c. A local attacker with write access to a participating package cache or staging path could race path checks and replacement operations to redirect package downloads, cleanup, or install-related side effects outside the intended cache. The affected lifecycle helper paths also used shell-form invocation, increasing command-line interpretation risk during privileged helper execution. This issue is fixed in version 2.7.8.","publishedAt":"2026-09-17T16:55:19.349Z","updatedAt":"2026-09-21T20:58:45.216Z","severity":{"score":5.8,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/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-h387-g4pf-28cj","https://github.com/MidnightBSD/mport/pull/118","https://github.com/MidnightBSD/mport/commit/29154b0fdfb5806568ed1277e88d942bad6d1169","https://github.com/MidnightBSD/mport/releases/tag/2.7.8"],"weaknesses":["CWE-78","CWE-367"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54575.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54575","state":"PUBLISHED","datePublished":"2026-09-17T16:55:19.349Z","dateUpdated":"2026-09-21T20:58:45.216Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-15T19:15:27.343Z"},"containers":{"cna":{"title":"mport package fetch and clean paths are vulnerable to TOCTOU filesystem races","descriptions":[{"lang":"en","value":"mport is the MidnightBSD Package Manager. Prior to 2.7.8, privileged package fetch and cache-cleaning operations used race-prone path handling across libmport/fetch.c, libmport/clean.c, libmport/util.c, libmport/bundle_read_install_pkg.c, libmport/delete_primative.c, and libexec/mport.create/mport.create.c. A local attacker with write access to a participating package cache or staging path could race path checks and replacement operations to redirect package downloads, cleanup, or install-related side effects outside the intended cache. The affected lifecycle helper paths also used shell-form invocation, increasing command-line interpretation risk during privileged helper execution. This issue is fixed 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-h387-g4pf-28cj","name":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-h387-g4pf-28cj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/118","name":"https://github.com/MidnightBSD/mport/pull/118","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/29154b0fdfb5806568ed1277e88d942bad6d1169","name":"https://github.com/MidnightBSD/mport/commit/29154b0fdfb5806568ed1277e88d942bad6d1169","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":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.8,"baseSeverity":"MEDIUM","vectorString":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-367","lang":"en","description":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-17T16:55:19.349Z"},"source":{"advisory":"GHSA-h387-g4pf-28cj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-21T20:58:35.699318Z","id":"CVE-2026-54575","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-21T20:58:45.216Z"}}]}}}