CVE-2026-54582
published medium CVSS 4.0 · 6.0mport package installation can overwrite existing unmanaged or differently owned files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MidnightBSD | — | mport< 2.7.8 | Affected | Not stated | GitHub_M |
Description
mport is the MidnightBSD Package Manager. Prior to 2.7.8, package installation lacked a preflight check for incoming non-directory assets that already existed on disk. The affected logic across libmport/check_preconditions.c, libmport/install_primative.c, and libmport/mport_private.h did not apply MPORT_PRECHECK_FILE_CONFLICTS, so a crafted or conflicting package could overwrite a file owned by another package or unmanaged by mport. The check is bypassed only when the operator explicitly enables mport->force. Privileged installation without that override could compromise local filesystem integrity and package database consistency. This issue is fixed in version 2.7.8.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MidnightBSD | mport | < 2.7.8 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-73 CWE-73: External Control of File Name or Path
- CWE-668 CWE-668: Exposure of Resource to Wrong Sphere
References
4Provider assertions
2GitHub_M · cna
mport package installation can overwrite existing unmanaged or differently owned files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 098e87f4cc236e9bff8d110720520794b5642f13b57e16cc46651424fda6c4b8
- Ingested
- 23 Sep 2026, 09:20:39 UTC
- Source record
- Official CVE record