Skip to main content

MidnightBSD mport EUVDEUVD-2026-82321

| CVE-2026-54582 MEDIUM
External Control of File Name or Path (CWE-73)
2026-09-17 GitHub_M
6.0
CVSS 4.0 · Vendor: GitHub_M
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Impact

This is a genuine but sharply gated integrity flaw, not a high-urgency remote threat. The vendor's CVSS 4.0 vector (VI:H, VA:L, VC:N) correctly captures the impact - arbitrary file overwrite and package-database inconsistency with no data disclosure - but its AV:N is questionable: mport package installation is a local, operator-initiated action, so AV:L with required user interaction better reflects reality. The AT:P (attack requirement) and UI:P/UI:R metrics are the true story: exploitation depends on a privileged operator actively installing an attacker-crafted or conflicting package, AND on a colliding non-directory file already existing on disk. No EPSS score, no CISA KEV listing, and no public proof-of-concept were provided - the referenced GitHub advisory, PR #131, commit, and 2.7.8 release are the FIX, not exploit code. Net: a legitimate defect worth patching on affected MidnightBSD hosts, but the combination of privileged-install prerequisite, required file collision, and the product's tiny deployment footprint places this well below internet-facing critical bugs. The 'Authentication Bypass' tag is inaccurate - this is a file-conflict/integrity issue (CWE-73), with no authentication mechanism bypassed.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace existing files on disk that are owned by another package or unmanaged by mport, compromising local filesystem integrity and package database consistency. The flaw requires user interaction (UI:P) and specific attack requirements (AT:P), and is unauthenticated according to the CVSS vector (PR:N). No public exploit was identified at time of analysis; the vendor fixed the issue in version 2.7.8.

RemediationAI

Upgrade to MidnightBSD mport 2.7.8 or later; the vendor-released patch is available at https://github.com/MidnightBSD/mport/releases/tag/2.7.8 and via commit c643312d149dcc994957dbafa8f6f6b61e945e39. The fix enforces the MPORT_PRECHECK_FILE_CONFLICTS check during installation unless the operator explicitly uses -f/--force. As a compensating control, avoid installing untrusted or crafted packages with root privileges, and do not use the force flag for such packages, as it disables the conflict check. Administrators should also review the package database (assets table) for unexpected file ownership after any suspected compromise. Since the flaw requires a user to initiate installation of a malicious package (user interaction), restricting package installation to trusted sources reduces exposure.

Affected VersionsENISA

mport < 2.7.8

Affected Packages

euvd mport fix: 2.7.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a CWE-73 (External Control of File Name or Path) issue in the MidnightBSD mport package manager. Prior to version 2.7.8, the package installation preflight routine in libmport/check_preconditions.c did not include the MPORT_PRECHECK_FILE_CONFLICTS flag, and the corresponding check_file_conflicts() logic was absent from libmport/install_primative.c and libmport/mport_private.h. As a result, when a package was installed, the installer failed to verify whether incoming non-directory assets (e.g., files, owners/modes, shell scripts, samples, info files) already existed on disk. A crafted or conflicting package could therefore overwrite a file already owned by another package or a file unmanaged by mport, and the package database (assets table in the mport SQLite database) would not be updated to reflect the new ownership, leading to database inconsistency. The fix adds a check that queries the stub.assets table for the package's assets, constructs the full path relative to mport->root, uses lstat() to determine if the path exists and is not a directory, and then queries the assets table to see if another package owns it. If so, installation aborts with an error unless the operator explicitly passes -f (mport->force). The check is bypassed only when force is set, which is intended for advanced users.

Know when Mport gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.0 MEDIUM
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

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 17, 2026 - 18:19 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.5%
Top 56% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Mport

View all
CVE-2026-54580 HIGH
8.3 Sep 17

Package-index corruption and denial of package-management operations affect MidnightBSD mport before 2.7.8 when a malici

CVE-2026-54583 HIGH
8.3 Sep 17

Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who con

CVE-2026-54581 HIGH
8.3 Sep 17

MidnightBSD's mport package manager prior to 2.7.8 can accept a tampered bootstrap package index as verified, because th

CVE-2026-54586 MEDIUM
6.0 Sep 17

On-path tampering with package-fetch traffic in MidnightBSD's mport package manager lets a network-positioned attacker s

CVE-2026-54585 MEDIUM
6.0 Sep 17

Path traversal in MidnightBSD mport before 2.7.8 allows a crafted package manifest to make the privileged sample-file ha

CVE-2026-54575 MEDIUM
5.8 Sep 17

Path-racing and shell-invocation weaknesses in the MidnightBSD mport package manager (all versions prior to 2.7.8) let a

CVE-2026-54576 MEDIUM
5.8 Sep 17

Filesystem integrity compromise in MidnightBSD's mport package manager (versions prior to 2.7.8): a local user who alrea

CVE-2026-54587 MEDIUM
5.8 Sep 17

Symlink following and dot-dot path traversal in MidnightBSD mport prior to 2.7.8 lets a local attacker who can already w

CVE-2026-54584 MEDIUM
5.3 Sep 21

MidnightBSD's mport package manager before 2.7.8 trusts the TMPDIR environment variable when extracting package metafile

CVE-2026-54579 LOW
2.3 Sep 17

Spoofed or injected ICMP echo replies can steer mport's mirror-latency selection toward an attacker-chosen mirror and, i

CVE-2026-54577 LOW
2.0 Sep 17

MidnightBSD's mport package manager, in all versions prior to 2.7.8, mis-parses the argument list for its 'audit' subcom

CVE-2026-54578 LOW
2.0 Sep 17

Checksum verification in MidnightBSD's mport package manager before 2.7.8 can silently continue after a hashing failure,

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy