CVE-2026-54587 mport directory asset installation is vulnerable to symlink and path traversal races
A local attacker can exploit race conditions and path traversal in mport to modify files outside intended directories during privileged package installation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-54587?
CVE-2026-54587 is a medium-severity path traversal vulnerability in MidnightBSD mport, published on 17 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
mport is the MidnightBSD Package Manager. Prior to 2.7.8, directory assets handled as ASSET_DIR or ASSET_DIR_OWNER_MODE in libmport/bundle_read_install_pkg.c used path-based mport_mkdirp(), 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.
Which versions are affected by CVE-2026-54587?
How do I fix CVE-2026-54587?
No fix has been published for CVE-2026-54587 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-54587 being exploited?
There is no known exploitation of CVE-2026-54587 in the wild and no public exploit code.
Sources
Also known as GHSA-f69w-h3gh-r86p.