CVE-2026-54585: Midnightbsd Mport

Medium severity, CVSS 6.0. EPSS: 0.5% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Midnightbsd Mport, before 2.7.8: fixed in 2.7.8

Affected products

Published 2026-09-17. Last modified 2026-09-17.