CVE-2026-54578

mport verify can compare stale checksum data after hashing failures

State
Published
Severity
2.0 Low
Published
Sep 17, 2026
Updated
Sep 18, 2026
Reserved
Jun 15, 2026

Read the record on cve.org

Description

mport is the MidnightBSD Package Manager. Prior to 2.7.8, mport_verify_package() in libmport/verify.c could continue after MD5File() or SHA256_File() 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.

Scores

CVSSScoreVectorSource
4.02.0 LowCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-354 Improper Validation of Integrity Check Value
  • CWE-755 Improper Handling of Exceptional Conditions

Affected Products

ProductVersions
mportMidnightBSD
  • < 2.7.8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.