CVE-2026-54579 mport mirror-selection ping accepts insufficiently validated ICMP replies

Low 2.3 Published Updated

A network attacker can cause an out-of-bounds read and influence mirror selection in MidnightBSD's package manager by sending spoofed ICMP replies.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-54579?

CVE-2026-54579 is a low-severity memory corruption vulnerability in MidnightBSD mport, published on 17 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-345, CWE-125

Which versions are affected by CVE-2026-54579?

How do I fix CVE-2026-54579?

No fix has been published for CVE-2026-54579 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-54579 being exploited?

There is no known exploitation of CVE-2026-54579 in the wild and no public exploit code.

Sources

Also known as GHSA-qc2f-2j7j-m3r7.

Is CVE-2026-54579 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free