{"id":"CVE-2026-54585","published":"2026-09-17T16:52:33Z","modified":"2026-09-17T17:21:25Z","title":"mport sample file handling can write outside the configured root","vendor":"MidnightBSD","product":"mport","tier":"tail","description":{"text":"mport is the MidnightBSD Package Manager. Prior to 2.7.8, create_sample_file() in libmport/bundle_read_install_pkg.c did not constrain absolute source and destination paths from the sample-file manifest directive to mport->root. A malicious or malformed package manifest could therefore direct privileged sample-file handling to copy or write outside the configured installation root, compromising local filesystem integrity. This issue is fixed in version 2.7.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00544,"percentile":0.46601,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-xqjc-rxmm-p27v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/122","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/36a42c8ddbd23ee9eb72c4c17596eb92cb423cf0","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":9.32},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"midnightbsd","affectedVersions":[{"vendor":"MidnightBSD","product":"mport","versions":["< 2.7.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-17T17:21:08.742793Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-82323","exploited":false,"provenance":"source"}}