CVE-2026-54578: mport verify can compare stale checksum data after hashing failures

Published Sep 17, 2026
·
Updated

mport is the MidnightBSD Package Manager. Prior to 2.7.8, mportverifypackage() in libmport/verify.c could continue after MD5File() or SHA256File() failed and compare an expected checksum with stale data in the hash buffer rather than a newly computed digest. An attacker able to influence an installed file or the conditions that make hashing fail could receive a misleading integrity result or hide a checksum failure. This issue is fixed in version 2.7.8.

Affected Software

1 affected component
mport/mport<2.7.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade midnightbsd/mport to a version that resolves this vulnerability.

    Fixed in 2.7.8

Event History

Sep 17, 2026
CVE Published
via MITRE·04:54 PM
Data Sourced
via MITRE·04:54 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using MidnightBSD Package Manager versions before 2.7.8 are affected when package verification hashes installed files and a hash operation fails. An attacker would need to influence an installed file or the conditions causing MD5File() or SHA256_File() to fail.

2

What is the practical impact of a hashing failure on an affected version?

mport_verify_package() can compare the expected checksum against stale hash-buffer contents instead of a newly computed digest. This can produce a misleading integrity result and may hide a checksum failure.

3

How can this be remediated?

Upgrade mport to version 2.7.8, which fixes the failure handling in package verification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203