{"id":"CVE-2026-54576","aliases":["CVE-2026-54576"],"related":[],"kind":"vulnerability","state":"published","title":"mport package installation has symlink TOCTOU in chown and chmod handling","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-17T16:58:25.028Z","modified":"2026-09-18T15:17:09.180Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-59","CWE-367"],"affected":[{"ranges":[{"version":"< 2.7.8","status":"affected"}],"vendor":"MidnightBSD","product":"mport","source":"cvelist"}],"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-23g3-7fv3-3ccf","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/pull/150","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/commit/4676ac05b1056b54a3d38d03ae8a478bf12c9abe","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-18T14:36:39.720Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54576","url":"https://www.cve.org/CVERecord?id=CVE-2026-54576","licence":"CVE Terms of Use","modified":"2026-09-18T14:44:36.712Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54576","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54576","licence":"Public domain","modified":"2026-09-18T15:17:09.180Z"}],"updatedAt":"2026-11-25T22:59:39.280Z","epss":{"score":0.001,"percentile":0.00918,"date":"2026-12-01T12:00:22.000Z"}}