{"schemaVersion":3,"id":"CVE-2026-54576","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"mport is the MidnightBSD Package Manager. Prior to 2.7.8, do_actual_install() in libmport/bundle_read_install_pkg.c used path-based lstat(), chown(), stat(), and chmod() operations while installing package files. A local attacker with write access to a target directory could replace a checked file with a symlink before privileged ownership or mode changes were applied, redirecting those changes to an attacker-selected path and compromising filesystem integrity or permissions. This issue is fixed in version 2.7.8.","dates":{"published":"2026-09-17T16:58:25.028Z","modified":"2026-09-18T14:44:36.712Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.8,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.8,"severity":"medium","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/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.00105,"percentile":0.00994,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.004999999999999991,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.001},"history":[{"date":"2026-09-18T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00105,"percentile":0.00994}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.001,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00105,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00105,"percentile":0.00994}]},"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-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.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-23g3-7fv3-3ccf","label":"github.com/MidnightBSD/mport/security/advisories/GHSA-23g3-7fv3-3ccf","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/150","label":"github.com/MidnightBSD/mport/pull/150","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/4676ac05b1056b54a3d38d03ae8a478bf12c9abe","label":"github.com/MidnightBSD/mport/commit/4676ac05b1056b54a3d38d03ae8a478bf12c9abe","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:58:25.028Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-18T14:44:36.712Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:04:53.642Z","stale":false,"partial":false}}