CVE-2026-54585 mport sample file handling can write outside the configured root
MediumCVSS 6.0
EPSS 0.54%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| MidnightBSD mport | = < 2.7.8 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MidnightBSD mport | = < 2.7.8 | No fix listed |
References
- https://github.com/MidnightBSD/mport/security/advisories/GHSA-xqjc-rxmm-p27v
- https://github.com/MidnightBSD/mport/pull/122
- https://github.com/MidnightBSD/mport/commit/36a42c8ddbd23ee9eb72c4c17596eb92cb423cf0
- https://github.com/MidnightBSD/mport/releases/tag/2.7.8
- ENISA EUVD EUVD-2026-82323 third-party-advisory