Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-54585mport sample file handling can write outside the configured root
Medium 6.0
In plain English
A medium-severity path traversal in mport from MidnightBSD. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities).
Official description
mport is the MidnightBSD Package Manager. Prior to 2.7.8, create_sample_file() in libmport/bundle_read_install_pkg.c did not constrain absolute source and destination paths from the sample-file manifest directive to mport->root. A malicious or malformed package manifest could therefore direct privileged sample-file handling to copy or write outside the configured installation root, compromising local filesystem integrity. This issue is fixed in version 2.7.8.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MidnightBSD | mport | < 2.7.8 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/MidnightBSD/mport/security/advisories/GHSA-xqjc-rxmm-p27v x_refsource_CONFIRM
- https://github.com/MidnightBSD/mport/pull/122 x_refsource_MISC
- https://github.com/MidnightBSD/mport/commit/36a42c8ddbd23ee9eb72c4c17596eb92cb423cf0 x_refsource_MISC
- https://github.com/MidnightBSD/mport/releases/tag/2.7.8 x_refsource_MISC