Skip to main content

MidnightBSD mport CVE-2026-54583

| EUVDEUVD-2026-82319 HIGH
Path Traversal (CWE-22)
2026-09-17 GitHub_M
8.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise or MITM package index/mirror
  2. Delivery
    Inject '../' or '/'-laden bundlefile into index entry
  3. Exploit
    Victim runs mport download/install
  4. Execution
    Unchecked filename composed into write path
  5. Impact
    Package data written outside cache to attacker-chosen path

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control the content of the package index that mport consumes - specifically the ability to set indexEntry->bundlefile (via a malicious or compromised package mirror/repository, or a man-in-the-middle position on the download channel). The victim must then invoke mport to download or install a package (mport_fetch_bundle / fetch_bundle_to_dir / mport_download code paths) so the crafted filename is composed into a write path. It affects MidnightBSD mport versions prior to 2.7.8; installations that fetch only from trusted, integrity-protected indexes are not practically exploitable. This precondition (reflected as CVSS 4.0 AT:P) is the primary limiting factor rather than authentication or user-interaction on the local system.

Impact

This is a genuine but conditionally-gated integrity flaw, not a drive-by remote code execution bug. The vendor CVSS 4.0 vector (8.3, AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L) is internally consistent with the description: the critical qualifier is AT:P (Attack Requirements: Present), which encodes that exploitation depends on the attacker first placing a malicious value into the package index data that mport consumes - the vulnerability is not reachable against a benign, trusted mirror. Impact is correctly integrity-dominant (VI:H arbitrary file write outside the cache) with no confidentiality (VC:N) and only limited availability (VA:L). No EPSS score, KEV listing, or public exploit was provided in the intelligence, so the exploitation status is 'no public exploit identified at time of analysis'; the 8.3 rating is severity-of-impact, not likelihood-of-widespread-exploitation. The realistic risk is materially lowered by two factors the raw score partly obscures: the attacker must control or poison the package index (compromised/malicious mirror or MITM on the fetch channel), and the affected product - MidnightBSD's mport - has a tiny deployment footprint. Net: treat as a real supply-chain-style priority for MidnightBSD operators who fetch from untrusted mirrors, but low aggregate real-world risk given prevalence and the required precondition.

Exploit ScenarioDerived

An attacker who controls or can tamper with a MidnightBSD package index (a malicious/compromised mirror, or an on-path MITM against the fetch channel) sets indexEntry->bundlefile to a value containing '..', a leading/embedded '/', or a dot/empty name. When a victim runs mport to download or install a package, the unchecked filename is composed into the write path, causing package data to be written outside the intended cache directory or to an unsafe destination name. No public exploit code was provided in the intelligence, and successful exploitation requires the poisoned-index precondition (CVSS AT:P).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who controls package index data smuggle an unsafe value into indexEntry->bundlefile so that downloaded package data is written outside the intended cache directory or to an attacker-chosen filename. Unauthenticated remote attackers can exploit this only if they can influence the index that mport consumes, for example through a malicious or compromised package mirror or a man-in-the-middle position on the download channel, and only when the victim subsequently runs mport to download or install a package; the independent assessment rates this as a conditionally-gated integrity flaw (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L) rather than drive-by remote code execution, with no confidentiality impact and only limited availability impact. There is no public exploit code identified at time of analysis and no confirmed active exploitation (not in CISA KEV); vendor-assigned CVSS 4.0 base is 8.3, reflecting the same high integrity impact.

RemediationAI

Upgrade mport to version 2.7.8 or later (vendor-released patch: 2.7.8), available from the MidnightBSD mport 2.7.8 release page at https://github.com/MidnightBSD/mport/releases/tag/2.7.8; the fix is also visible in the advisory at https://github.com/MidnightBSD/mport/security/advisories/GHSA-mr62-mqwj-vhh3, pull request https://github.com/MidnightBSD/mport/pull/125 and commit https://github.com/MidnightBSD/mport/commit/cad959d47bc79a62b6a7163800fbfe35633e7cf8, so distributions that package mport should backport that commit if they cannot move to 2.7.8. Because exploitation requires an attacker to control the package index mport consumes, the practical compensating controls are to fetch only from trusted, integrity-protected repositories, to enforce TLS certificate validation and avoid HTTP mirrors or untrusted third-party mirrors, and to verify signed index metadata where available; the trade-off is reduced mirror flexibility and possible installation failures if a mirror cannot be authenticated, and these controls do not protect against a compromised trusted mirror. Disabling or restricting automatic package fetches (for example, using only locally staged package files) would remove the vulnerable download paths entirely, at the cost of losing normal package installation and update functionality, and no workaround substitutes for installing 2.7.8.

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 flaw is a classic CWE-22 improper limitation of a pathname to a restricted directory (path traversal) in mport's C library, libmport/fetch.c. Package metadata from an index is parsed into an indexEntry structure whose bundlefile field is later composed into a download/write path by mport_fetch_bundle(), fetch_bundle_to_dir() and mport_download(). Before 2.7.8 the code only rejected NULL, empty and slash-containing filenames inline at two call sites and performed no validation at all on indexEntry->bundlefile, so values such as '.', '..' or names containing '/' could survive into the write path. The fix (GitHub PR 125, commit cad959d47bc79a62b6a7163800fbfe35633e7cf8) introduces a single is_valid_bundle_filename() helper that rejects NULL, empty strings, '.' and '..', and any filename containing '/', and applies it both to the existing entry points and to the index-derived bundle filename in mport_download(). The root cause is therefore insufficient input validation of externally supplied index fields, not a memory-safety defect; it is an integrity/availability issue against the local package cache and filesystem, which the CPE cpe:2.3:a:midnightbsd:mport:*:*:*:*:*:*:*:* confirms covers all mport releases prior to 2.7.8 on MidnightBSD.

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 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-delivered via package fetch (AV:N) but requires attacker-controlled/poisoned index, mapped to AC:H in 3.1; no auth (PR:N); arbitrary file write gives I:H with limited A:L and no C.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
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

2
Patch available
Sep 17, 2026 - 18:19 EUVD
CVE Published
Sep 17, 2026 - 16:46 cve.org
HIGH 8.3

DescriptionCVE.org

mport is the MidnightBSD Package Manager. Prior to 2.7.8, libmport/fetch.c did not consistently reject empty, dot, dot-dot, or slash-containing bundle filenames before composing package download and write paths. Malicious package index data could place an unsafe value in indexEntry->bundlefile, and the missing is_valid_bundle_filename() checks allowed downloaded package data to be written outside the intended cache location or to an unsafe destination name. This issue is fixed in version 2.7.8.

Technical POC Analysis

CWE-22 (path traversal), with CWE-73 (external control of file name or path) as the secondary weakness assigned in the advisory.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

MidnightBSD's mport package manager is affected by a high-severity path traversal flaw that can allow a malicious or compromised package index, or a man-in-the-middle attacker, to cause package data to be written outside the intended cache directory when an administrator or user runs mport to download or install software. This creates a supply-chain integrity risk for organizations relying on MidnightBSD hosts, because unauthorized file placement could undermine system trust, though exploitation is conditionally gated and requires influence over the package index plus a user-initiated mport operation. No public exploit identified at time of analysis and no confirmed active exploitation (not in CISA KEV), but no vendor-released patch identified at time of analysis means leadership should prioritize interim controls and source verification for affected systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict mport to trusted, officially maintained mirrors over HTTPS with certificate validation; verify package index signatures or checksums before use; avoid untrusted or compromised mirrors; monitor for unexpected files written outside the intended mport cache directory; and limit mport execution to privileged administrators on affected MidnightBSD systems. If MidnightBSD mport 2.7.8 or later becomes available, apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Rare
mport is the package manager for MidnightBSD, an obscure niche BSD fork
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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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-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-54582 MEDIUM
6.0 Sep 17

Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace

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