CVE-2026-54587: mport directory asset installation is vulnerable to symlink and path traversal races

Published Sep 17, 2026
·
Updated

mport is the MidnightBSD Package Manager. Prior to 2.7.8, directory assets handled as ASSETDIR or ASSETDIROWNERMODE in libmport/bundlereadinstallpkg.c used path-based mportmkdirp(), ownership, and permission operations. A local attacker able to modify part of the target installation tree could use dot-dot traversal or substitute symlinks during privileged package installation, causing directory creation or attribute changes to affect attacker-selected paths outside the intended package directories. This issue is fixed in version 2.7.8.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MidnightBSD Package Manager (mport) to a version that resolves this vulnerability.

    Fixed in 2.7.8

Event History

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

Frequently Asked Questions

1

Who is exposed to this issue?

Systems running mport versions prior to 2.7.8 are exposed when a privileged package installation processes directory assets and an untrusted local user can modify part of the target installation tree.

2

What does an attacker need to exploit it?

The attacker needs local ability to modify a portion of the package's target installation tree during a privileged package installation. They can use dot-dot path traversal or race the installation by substituting symlinks.

3

What could successful exploitation do?

It can cause directory creation, ownership changes, or permission changes to be applied to attacker-selected paths outside the intended package directories.

4

What should be done if upgrading is not immediately possible?

Prevent untrusted local users from modifying any part of target installation trees while privileged package installations are performed. Restrict privileged package installation until mport can be updated to 2.7.8.

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