Skip to main content

CVE-2026-54579: CWE-125: Out-of-bounds Read in MidnightBSD mport

0
Low
VulnerabilityCVE-2026-54579cvecve-2026-54579cwe-125cwe-345
Published: 09/17/2026 (09/17/2026, 16:59:52 UTC)
Source: CVE Database V5
Vendor/Project: MidnightBSD
Product: mport

Description

CVE-2026-54579 is an out-of-bounds read vulnerability in the MidnightBSD package manager 'mport' prior to version 2.7.8. The vulnerability arises because the ping() function in libmport/ping.c does not properly validate ICMP reply fields and uses a fixed IP-header offset instead of the dynamic ip_hl field. This can allow a network attacker who can inject or spoof ICMP replies to influence mirror latency selection or cause an out-of-bounds read via malformed packets with IP options. The issue is fixed in version 2.7.8.

CVSS v4.0

Score 2.3low

Attack Vector
Adjacent Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

MidnightBSD

mport

Affected versions
<2.7.8
GitHub Actionsmore threats →ai
midnightbsd/mport
pkg:github/midnightbsd/mport
Affected versions
<2.7.8

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

AILast updated: 09/17/2026, 22:15:04 UTC

Technical Analysis

The vulnerability in mport's ping() function involves accepting ICMP replies without validating the icmp_id or icmp_seq fields and parsing the reply using a fixed IP-header offset rather than the ip_hl field. This improper parsing can be exploited by an attacker able to inject or spoof ICMP replies to manipulate mirror latency selection. Additionally, malformed ICMP packets carrying IP options can shift the ICMP header, triggering an out-of-bounds read (CWE-125). The vulnerability affects versions prior to 2.7.8 and has been addressed in version 2.7.8.

Potential Impact

An attacker capable of injecting or spoofing ICMP replies could influence the mirror latency selection process in mport, potentially affecting package source selection. The out-of-bounds read triggered by malformed packets could lead to undefined behavior or crashes. The CVSS 4.0 score is low (2.3), indicating limited impact and complexity. There are no known exploits in the wild.

Mitigation Recommendations

Upgrade mport to version 2.7.8 or later, where this vulnerability is fixed. No other mitigation is indicated or required by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 6aac65bf55bf5e2cf5fdf657

Added to database: 09/17/2026, 22:12:15 UTC

Last enriched: 09/17/2026, 22:15:04 UTC

Last updated: 09/18/2026, 02:16:39 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses