Skip to main content

MidnightBSD mport CVE-2026-54579

| EUVDEUVD-2026-82330 LOW
Out-of-bounds Read (CWE-125)
2026-09-17 GitHub_M
2.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain adjacent-network position
  2. Delivery
    Observe mport ICMP mirror probing
  3. Exploit
    Inject spoofed/malformed ICMP replies
  4. Execution
    Bypass missing icmp_id/icmp_seq validation
  5. Impact
    Skew mirror selection or trigger OOB read

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

Requires the attacker to be on the same adjacent network segment (AV:A) as an mport client and able to inject or spoof ICMP echo replies that reach the victim while mport is actively performing its ICMP-based mirror-latency probing (the ping()/mirror-selection code path in libmport/ping.c). Exploitation is limited to that probing window and to attackers who can already place visible ICMP traffic on-path (AT:P), which is why real-world reach is narrow; the OOB-read variant additionally requires crafting a reply with IP options to shift the ICMP header past mport's hardcoded offset. No authentication or user interaction is needed, but the adjacency requirement and the transient probing window sharply constrain feasibility.

Impact

This is a low-priority, low-real-risk issue despite being a memory-safety flaw. The vendor CVSS 4.0 vector (AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L, base 2.3) is internally consistent with the description: exploitation requires adjacent-network positioning (AV:A) and the attacker must be able to inject or spoof ICMP replies that are visible to the victim during mport's mirror-latency probing (AT:P, a real attack requirement/race gate). Impact is bounded - low integrity (nudging which mirror mport selects) and low availability (an OOB read that can crash the client); the vendor correctly rates confidentiality N because the out-of-bounds bytes are consumed by local parsing, not returned to the attacker. There is no EPSS score, no CISA KEV listing, and no public exploit code identified at time of analysis, so no exploitation signals elevate it. The only mild inconsistency is tagging: the record is labeled 'Information Disclosure' while the vendor vector sets VC:N (no confidentiality impact), so that tag overstates the real effect. Net: a genuine but minor bug that matters only to attackers already on the same L2 segment as an mport user actively fetching packages - verify by patching to 2.7.8 rather than treating as urgent.

Exploit ScenarioDerived

An attacker on the same local/adjacent network as a MidnightBSD host running mport waits for the client to probe candidate mirrors via ICMP, then injects or spoofs unsolicited ICMP echo replies. Because ping() never checks icmp_id/icmp_seq, these forged replies are accepted and can skew latency measurements to steer mport toward an attacker-preferred mirror; alternatively, a reply crafted with IP options shifts the ICMP header past mport's fixed offset assumption and triggers an out-of-bounds read that can crash the client. No public proof-of-concept is known.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 17, 2026

Spoofed or injected ICMP echo replies can steer mport's mirror-latency selection toward an attacker-chosen mirror and, if the reply carries IP options, shift the parsed ICMP header past the hardcoded offset used by ping() in libmport/ping.c, causing an out-of-bounds read. The flaw affects MidnightBSD mport releases prior to 2.7.8 and is only reachable by an unauthenticated attacker on the same adjacent network segment who can place visible ICMP traffic on-path while an mport client is actively probing mirrors (assessed CVSS:3.1 AV:A/AC:H/PR:N/UI:N/C:N/I:L/A:L; CVSS 4.0 base 2.3). Impact is low and confined to the transient probing window; no public exploit code and no confirmed active exploitation were identified at time of analysis, and the vendor has released version 2.7.8 as the fix.

RemediationAI

Upgrade mport to version 2.7.8, which is the vendor-released fix for this issue, and re-run any mirror-selection or package operations afterward; the advisory at https://github.com/MidnightBSD/mport/security/advisories/GHSA-qc2f-2j7j-m3r7 should be consulted for the exact package or source update procedure. Where an immediate upgrade is not possible, the practical compensating control is to remove the vulnerable code path from the threat model: pre-configure a static, trusted mirror (or otherwise avoid ICMP-based mirror latency probing) so the ping() routine is never exercised, accepting the trade-off that dynamic mirror ranking and failover quality degrade. Network-side, restrict the client to a segment where untrusted hosts cannot transmit, spoof, or be on-path for ICMP echo replies destined for it, and filter inbound ICMP echo replies at the boundary of the mport client's segment, understanding that this also blocks legitimate mirror probing and may cause mport to fall back to slower or unreachable mirrors. Because no authentication or user interaction is required, do not rely on user-side caution or credential hardening as mitigation.

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

mport is the package manager shipped with MidnightBSD, and its libmport/ping.c implements a raw-ICMP ping used to rank mirrors by latency. The routine did not validate the icmp_id or icmp_seq fields of incoming echo replies, so any ICMP reply visible on the path could be accepted as a response to mport's own probes and used to bias mirror selection. Worse, the parser located the ICMP header at a fixed byte offset from the start of the IP header rather than computing it from the IP header length field (ip_hl); a reply carrying IP options shifts the ICMP header further into the packet, so the fixed offset points into unrelated bytes and produces an out-of-bounds read (CWE-125). The class of defect is a memory-safety read bug combined with missing provenance checks on network input, in a code path that runs with the privileges of the mport client. Because the vector is AV:A with AC:H under the independent 3.1 assessment (AT:P in the CVSS 4.0 vector), an attacker must be adjacent to the victim and must be able to inject spoofed ICMP replies that reach the client during the narrow latency-probing window, which sharply limits realistic exposure.

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 2.3 LOW
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.2 MEDIUM

Adjacent network positioning (AV:A) plus the need to spoof visible ICMP replies during a probing race maps to AC:H; effects are low-integrity mirror tampering and low-availability crash, with no confidentiality leak (C:N).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
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, ping() in libmport/ping.c accepted ICMP replies without validating icmp_id or icmp_seq and parsed the reply using a fixed IP-header offset instead of ip_hl. A network attacker able to inject or spoof visible ICMP replies could influence mirror latency selection, while a malformed packet carrying IP options could shift the ICMP header and trigger an out-of-bounds read. This issue is fixed in version 2.7.8.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Rare
MidnightBSD is an obscure hobby BSD fork with negligible enterprise footprint
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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