{"id":"CVE-2026-54576","published":"2026-09-17T16:58:25Z","modified":"2026-09-18T14:44:36Z","title":"mport package installation has symlink TOCTOU in chown and chmod handling","vendor":"MidnightBSD","product":"mport","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00105,"percentile":0.01084,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-23g3-7fv3-3ccf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/150","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/4676ac05b1056b54a3d38d03ae8a478bf12c9abe","tags":["x_refsource_MISC"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x_refsource_MISC"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":0.22},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"midnightbsd","affectedVersions":[{"vendor":"MidnightBSD","product":"mport","versions":["< 2.7.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-18T14:36:39.720536Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-82329","exploited":false,"provenance":"source"}}