CVE-2026-54578: CWE-354: Improper Validation of Integrity Check Value in MidnightBSD mport
CVE-2026-54578 is a low-severity vulnerability in MidnightBSD's mport package manager prior to version 2.7.8. The issue involves improper validation of integrity check values where the verification function may continue after a hashing failure and compare expected checksums against stale data. This could allow an attacker who can influence installed files or hashing conditions to receive misleading integrity results or conceal checksum failures. The vulnerability is fixed in version 2.7.8.
AI Analysis
Technical Summary
In MidnightBSD mport versions before 2.7.8, the function mport_verify_package() in libmport/verify.c does not properly handle failures from MD5File() or SHA256_File(). When these hashing functions fail, the code continues and compares the expected checksum against stale data remaining in the hash buffer instead of a newly computed digest. This improper validation of the integrity check value (CWE-354) can mislead the verification process, potentially hiding checksum failures. The issue is resolved in version 2.7.8.
Potential Impact
An attacker with the ability to influence an installed file or the conditions causing hashing to fail could cause the integrity verification to produce misleading results or hide checksum failures. This could undermine trust in package integrity verification but requires local access and conditions that cause hashing failures. The CVSS 4.0 score is 2 (low severity), reflecting limited impact and exploitability.
Mitigation Recommendations
Upgrade to MidnightBSD mport version 2.7.8 or later, where this issue is fixed. No other mitigation is indicated or required.
CVE-2026-54578: CWE-354: Improper Validation of Integrity Check Value in MidnightBSD mport
Description
CVE-2026-54578 is a low-severity vulnerability in MidnightBSD's mport package manager prior to version 2.7.8. The issue involves improper validation of integrity check values where the verification function may continue after a hashing failure and compare expected checksums against stale data. This could allow an attacker who can influence installed files or hashing conditions to receive misleading integrity results or conceal checksum failures. The vulnerability is fixed in version 2.7.8.
CVSS v4.0
Score 2.0low
Affected software
MidnightBSD
mport
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In MidnightBSD mport versions before 2.7.8, the function mport_verify_package() in libmport/verify.c does not properly handle failures from MD5File() or SHA256_File(). When these hashing functions fail, the code continues and compares the expected checksum against stale data remaining in the hash buffer instead of a newly computed digest. This improper validation of the integrity check value (CWE-354) can mislead the verification process, potentially hiding checksum failures. The issue is resolved in version 2.7.8.
Potential Impact
An attacker with the ability to influence an installed file or the conditions causing hashing to fail could cause the integrity verification to produce misleading results or hide checksum failures. This could undermine trust in package integrity verification but requires local access and conditions that cause hashing failures. The CVSS 4.0 score is 2 (low severity), reflecting limited impact and exploitability.
Mitigation Recommendations
Upgrade to MidnightBSD mport version 2.7.8 or later, where this issue is fixed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T19:15:27.344Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac1d2055bf5e2cf5a696d2
Added to database: 09/17/2026, 17:02:24 UTC
Last enriched: 09/17/2026, 17:17:03 UTC
Last updated: 09/17/2026, 17:37:01 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.