# CVE-2026-54576: mport package installation has symlink TOCTOU in chown and chmod handling

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-09-17T16:58:25.028Z
- Modified: 2026-09-18T15:17:09.180Z
- Weaknesses: CWE-59, CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MidnightBSD mport: < 2.7.8

## References

- <https://github.com/MidnightBSD/mport/security/advisories/GHSA-23g3-7fv3-3ccf>
- <https://github.com/MidnightBSD/mport/pull/150>
- <https://github.com/MidnightBSD/mport/commit/4676ac05b1056b54a3d38d03ae8a478bf12c9abe>
- <https://github.com/MidnightBSD/mport/releases/tag/2.7.8>

## Sources

- CVE List: [CVE-2026-54576](https://www.cve.org/CVERecord?id=CVE-2026-54576), CVE Terms of Use, modified 2026-09-18
- NVD: [CVE-2026-54576](https://nvd.nist.gov/vuln/detail/CVE-2026-54576), Public domain, modified 2026-09-18

---

Page: https://cve.day/CVE-2026-54576 · Whole record: https://cve.day/CVE-2026-54576.json · Rebuilt by cve.day 2026-11-25T22:59:39.280Z
