CVE-2026-54575 mport package fetch and clean paths are vulnerable to TOCTOU filesystem races

Medium 5.8 Published Updated

Local attackers can exploit TOCTOU races in MidnightBSD's package manager to redirect operations and potentially execute code with elevated privileges.

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

What is CVE-2026-54575?

CVE-2026-54575 is a medium-severity 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, privileged package fetch and cache-cleaning operations used race-prone path handling across libmport/fetch.c, libmport/clean.c, libmport/util.c, libmport/bundle_read_install_pkg.c, libmport/delete_primative.c, and libexec/mport.create/mport.create.c. A local attacker with write access to a participating package cache or staging path could race path checks and replacement operations to redirect package downloads, cleanup, or install-related side effects outside the intended cache. The affected lifecycle helper paths also used shell-form invocation, increasing command-line interpretation risk during privileged helper execution. This issue is fixed in version 2.7.8.

Weakness: CWE-78, CWE-367

Which versions are affected by CVE-2026-54575?

How do I fix CVE-2026-54575?

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

Is CVE-2026-54575 being exploited?

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

Sources

Also known as GHSA-h387-g4pf-28cj.

Is CVE-2026-54575 in your software?

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

Check your SBOMs for free