Skip to main content

CVE-2026-54578: CWE-354: Improper Validation of Integrity Check Value in MidnightBSD mport

0
Low
VulnerabilityCVE-2026-54578cvecve-2026-54578cwe-354cwe-755
Published: 09/17/2026 (09/17/2026, 16:54:20 UTC)
Source: CVE Database V5
Vendor/Project: MidnightBSD
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

MidnightBSD

mport

Affected versions
<2.7.8
GitHub Actionsmore threats →ai
midnightbsd/mport
pkg:github/midnightbsd/mport
Affected versions
<2.7.8

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

AILast updated: 09/17/2026, 17:17:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses