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

Published Sep 17, 2026
·
Updated

mport is the MidnightBSD Package Manager. Prior to 2.7.8, doactualinstall() in libmport/bundlereadinstallpkg.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.

Affected Software

1 affected component
MidnightBSD mport<2.7.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mport to a version that resolves this vulnerability.

    Fixed in 2.7.8

Event History

Sep 17, 2026
CVE Published
via MITRE·04:58 PM
Data Sourced
via MITRE·04:58 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A local attacker must have write access to a directory targeted during package installation. They can race the installer by replacing a checked file with a symlink before privileged ownership or permission changes occur.

2

Which installations are affected?

mport versions prior to 2.7.8 are affected. The issue is fixed in version 2.7.8.

3

What is the impact of successful exploitation?

An attacker can redirect privileged chown or chmod operations to an attacker-selected path. This can compromise filesystem integrity or permissions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203