---
id: CVE-2026-54587
title: mport is the MidnightBSD Package Manager
summary: >-
  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 a…
severity: medium
cvss: 5.8
cvssVector: 'CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N'
cwe:
  - CWE-59
  - CWE-367
vendor: MidnightBSD
product: mport
affected:
  - mport < 2.7.8
published: '2026-09-17'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T21:15:06.427'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54587'
references:
  - url: >-
      https://github.com/MidnightBSD/mport/commit/a4fa996df1fbebeff3691e1b512c807b5f414b5d
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/pull/119'
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/releases/tag/2.7.8'
    label: security-advisories@github.com
  - url: >-
      https://github.com/MidnightBSD/mport/security/advisories/GHSA-f69w-h3gh-r86p
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-17T19:14:56.768674Z'
cvssSource: cna
ingestedAt: '2026-09-17T17:23:30.630Z'
epss: 0.001
epssPercentile: 0.00986
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
