# CVE-2026-54585: mport sample file handling can write outside the configured root

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-17 · Modified: 2026-09-17
- Record: https://cvemate.com/vulnerability/CVE-2026-54585 · JSON: https://cvemate.com/vulnerability/CVE-2026-54585/json

## Description

```text
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.
```

## Signals

- CVSS: 6 medium (v4.0, CVE.org) 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
- EPSS: 0.521%, percentile 45.787%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- midnightbsd mport: \< 2.7.8

## 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>

---

Data as of 2026-12-05T08:00:54.711Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
