CVE-2026-54579: CWE-125: Out-of-bounds Read in MidnightBSD mport
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.
AI Analysis
Technical Summary
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.
CVE-2026-54579: CWE-125: Out-of-bounds Read in MidnightBSD 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
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'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.
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 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.
External Links
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.