{"schemaVersion":3,"id":"CVE-2026-54582","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"mport is the MidnightBSD Package Manager. Prior to 2.7.8, package installation lacked a preflight check for incoming non-directory assets that already existed on disk. The affected logic across libmport/check_preconditions.c, libmport/install_primative.c, and libmport/mport_private.h did not apply MPORT_PRECHECK_FILE_CONFLICTS, so a crafted or conflicting package could overwrite a file owned by another package or unmanaged by mport. The check is bypassed only when the operator explicitly enables mport->force. Privileged installation without that override could compromise local filesystem integrity and package database consistency. This issue is fixed in version 2.7.8.","dates":{"published":"2026-09-17T16:50:40.434Z","modified":"2026-09-17T19:15:52.035Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00554,"percentile":0.45196,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.023000000000000017,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00531},"history":[{"date":"2026-09-18T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00554,"percentile":0.45196}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00554,"percentile":0.45196}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-73","name":"External Control of File Name or Path","description":"The product allows user input to control or influence paths or file names that are used in filesystem operations.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/73.html"},{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere","description":"The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/668.html"}],"affected":[{"vendor":"midnightbsd","product":"mport","name":"mport","label":"mport","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.7.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.8","eol":null,"hubHref":"/vendor/midnightbsd/mport"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx","label":"github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/131","label":"github.com/MidnightBSD/mport/pull/131","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39","label":"github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","label":"github.com/MidnightBSD/mport/releases/tag/2.7.8","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-17T16:50:40.434Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-17T19:15:52.035Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:51:22.424Z","stale":false,"partial":false}}