Medium severity · published Sep 17, 2026
CVE-2026-54575
mport package fetch and clean paths are vulnerable to TOCTOU filesystem races
5.8
CVSS
0.1%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 2% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MP
mport · MidnightBSD
< 2.7.8 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-54575
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-54575
github.com
https://github.com/MidnightBSD/mport/commit/29154b0fdfb5806568ed1277e88d942bad6d1169
github.com
https://github.com/MidnightBSD/mport/pull/118
github.com
https://github.com/MidnightBSD/mport/releases/tag/2.7.8
github.com
https://github.com/MidnightBSD/mport/security/advisories/GHSA-h387-g4pf-28cj
More from mport
8.3
CVE-2026-54580
mport index decompression can leave partial or corrupt index data after zstd failures
8.3
CVE-2026-54583
mport package bundle downloads allow unsafe destination filenames
8.3
CVE-2026-54581
mport bootstrap index fetch can continue after hash verification failure
6.0
CVE-2026-54586
mport permits repository and package mirror fetches over insecure transport
6.0
CVE-2026-54585
mport sample file handling can write outside the configured root
