---
id: CVE-2026-54585
title: mport is the MidnightBSD Package Manager
summary: >-
  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
  malici…
severity: medium
cvss: 6
cvssVector: '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'
cwe:
  - CWE-22
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-54585'
references:
  - url: >-
      https://github.com/MidnightBSD/mport/commit/36a42c8ddbd23ee9eb72c4c17596eb92cb423cf0
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/pull/122'
    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-xqjc-rxmm-p27v
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-17T17:21:08.742793Z'
cvssSource: cna
ingestedAt: '2026-09-17T17:23:30.630Z'
epss: 0.00521
epssPercentile: 0.43083
---

## Overview

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.

## Remediation

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