CVE-2026-54582: CWE-73: External Control of File Name or Path in MidnightBSD mport
CVE-2026-54582 is a vulnerability in the MidnightBSD package manager 'mport' prior to version 2.7.8. The issue involves insufficient preflight checks during package installation, allowing crafted or conflicting packages to overwrite files owned by other packages or unmanaged by mport. This flaw can compromise filesystem integrity and package database consistency if the operator explicitly enables the force option. The vulnerability is fixed in version 2.7.8.
AI Analysis
Technical Summary
The vulnerability in mport versions before 2.7.8 arises from missing preflight checks for non-directory assets that already exist on disk during package installation. Specifically, the logic in libmport/check_preconditions.c, libmport/install_primative.c, and libmport/mport_private.h did not enforce the MPORT_PRECHECK_FILE_CONFLICTS check. This omission allows a crafted or conflicting package to overwrite files owned by other packages or unmanaged by mport, potentially compromising local filesystem integrity and the consistency of the package database. The check is bypassed only if the operator explicitly enables the force option (mport->force). The issue is resolved in version 2.7.8.
Potential Impact
An attacker able to install packages without the force override could cause overwriting of files owned by other packages or unmanaged files, leading to compromised filesystem integrity and inconsistent package database state. This could affect system stability and security, but exploitation requires operator interaction and privileges to install packages.
Mitigation Recommendations
Upgrade mport to version 2.7.8 or later, where the vulnerability is fixed. Avoid using the force option during package installation unless absolutely necessary, as it bypasses the file conflict checks. Patch status is confirmed fixed in 2.7.8.
CVE-2026-54582: CWE-73: External Control of File Name or Path in MidnightBSD mport
Description
CVE-2026-54582 is a vulnerability in the MidnightBSD package manager 'mport' prior to version 2.7.8. The issue involves insufficient preflight checks during package installation, allowing crafted or conflicting packages to overwrite files owned by other packages or unmanaged by mport. This flaw can compromise filesystem integrity and package database consistency if the operator explicitly enables the force option. The vulnerability is fixed in version 2.7.8.
CVSS v4.0
Score 6.0medium
Affected software
MidnightBSD
mport
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in mport versions before 2.7.8 arises from missing preflight checks for non-directory assets that already exist on disk during package installation. Specifically, the logic in libmport/check_preconditions.c, libmport/install_primative.c, and libmport/mport_private.h did not enforce the MPORT_PRECHECK_FILE_CONFLICTS check. This omission allows a crafted or conflicting package to overwrite files owned by other packages or unmanaged by mport, potentially compromising local filesystem integrity and the consistency of the package database. The check is bypassed only if the operator explicitly enables the force option (mport->force). The issue is resolved in version 2.7.8.
Potential Impact
An attacker able to install packages without the force override could cause overwriting of files owned by other packages or unmanaged files, leading to compromised filesystem integrity and inconsistent package database state. This could affect system stability and security, but exploitation requires operator interaction and privileges to install packages.
Mitigation Recommendations
Upgrade mport to version 2.7.8 or later, where the vulnerability is fixed. Avoid using the force option during package installation unless absolutely necessary, as it bypasses the file conflict checks. Patch status is confirmed fixed in 2.7.8.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T19:15:27.344Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac1d2055bf5e2cf5a696d4
Added to database: 09/17/2026, 17:02:24 UTC
Last enriched: 09/17/2026, 17:16:59 UTC
Last updated: 09/17/2026, 17:34:12 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.