Skip to main content

MidnightBSD mport CVE-2026-54580

| EUVDEUVD-2026-82322 HIGH
Improper Validation of Integrity Check Value (CWE-354)
2026-09-17 GitHub_M
8.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or impersonate package mirror
  2. Delivery
    Serve truncated/corrupt zstd index
  3. Exploit
    Decompression failure not made fatal
  4. Execution
    Partial index written and reused
  5. Impact
    Package-index integrity loss / DoS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Integrity verification
Exploitation Conditions

Exploitation requires the attacker to supply the compressed package-index stream consumed by mport's index fetch - i.e. control of, or a machine-in-the-middle position against, a MidnightBSD package mirror used by the victim's mport client (versions prior to 2.7.8). The trigger is a truncated, corrupt, or otherwise failing zstd stream during mport_fetch_index / mport_fetch_bootstrap_index. No authentication or user interaction on the victim host is needed beyond the routine act of updating the package index, but the mirror-control/MITM requirement (reflected as AT:P in the 4.0 vector) is the key limiting factor; a passive network attacker with no ability to alter mirror content cannot exploit it. Impact is limited to package-index integrity corruption and denial of package-management operations - no confidentiality exposure and no whole-system compromise.

Impact

This is a genuine but moderate-priority integrity/availability issue, not a critical remote-code-execution flaw despite the 8.3 CVSS 4.0 score. The vendor vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H) correctly captures the profile: no confidentiality impact, low integrity impact (corrupted/partial package index), and the vendor's claimed high availability impact - but crucially it carries AT:P (attack requirements present), which is the honest signal that exploitation is NOT trivially achievable from anywhere on the network. The real precondition is that the attacker must control, compromise, or impersonate (MITM) a package mirror serving the index; a merely 'faulty' mirror triggers the bug accidentally, which is a reliability defect more than an attack. I assess the vendor's VA:H as somewhat inflated - the impact is loss/corruption of the package index and disruption of package operations, not a system-wide crash, so VA:L/A:L is more defensible (see my assessed vectors). There is no KEV listing, no EPSS score supplied, and no public exploit code (the GitHub PR/commit shown is the FIX, not a weaponized exploit) - so exploitation status is: no public exploit identified at time of analysis. The dominant real-world limiter, however, is prevalence: MidnightBSD is an obscure BSD derivative with a very small deployment footprint, so even though the flaw is real, the population of exposed systems is tiny.

Exploit ScenarioDerived

An attacker who controls a MidnightBSD package mirror (or can machine-in-the-middle the index fetch) serves a truncated or corrupted zstd-compressed package index. Because mport_decompress_zstd() did not treat the failed ZSTD_decompressStream() or output-write error as fatal and fetch.c did not propagate the failure, mport retains and later uses the partial index - corrupting package-index integrity or denying package management operations. No public exploit code exists; this is a plausibility derived from the fixed source, not an observed campaign.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Package-index corruption and denial of package-management operations affect MidnightBSD mport before 2.7.8 when a malicious or faulty package mirror supplies truncated, corrupt, or otherwise failing zstd-compressed index data. A remote unauthenticated attacker must control or machine-in-the-middle a mirror used by mport, making the practical risk moderate despite a CVSS 4.0 score of 8.3; the impact is limited to index integrity and availability, with no confidentiality exposure or whole-system compromise. The issue is fixed in mport 2.7.8; no public exploit identified at time of analysis.

RemediationAI

Upgrade to MidnightBSD mport 2.7.8 (release tag 2.7.8), which includes the fixes in PR 135 / commit b3e11ba078351402082a881209ee6fda5d332e3d and is documented in GHSA-ffqj-j42r-747w (https://github.com/MidnightBSD/mport/security/advisories/GHSA-ffqj-j42r-747w). If immediate upgrade is not possible, restrict mport package-index fetching to officially trusted mirrors and require authenticated transport (e.g., TLS) to reduce mirror-control/MITM exposure; be aware this does not protect against a compromised trusted mirror. Treat any partial or corrupt package index as untrusted and avoid using it; however, no vendor-released workaround or patch alternative is identified in the provided data. Trade-offs: limiting mirrors can cause stale or delayed index updates, and transport authentication cannot compensate for a malicious mirror's content.

Affected VersionsENISA

mport < 2.7.8

Affected Packages

euvd mport fix: 2.7.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mport is the MidnightBSD package manager; the affected code is in libmport/util.c and libmport/fetch.c, which handle fetching and decompressing the package index. The implementation uses zstd streaming via ZSTD_decompressStream() to unpack the compressed index file. Before the fix, mport_decompress_zstd() did not treat a truncated or corrupt zstd stream, a read error, or a short fwrite as fatal, so partial index output could remain on disk and be used later. In addition, mport_fetch_index() and mport_fetch_bootstrap_index() did not consistently propagate decompression failures to callers. This maps to CWE-354 (Improper Validation of Integrity Check Value): the code failed to validate that the decompression transaction completed successfully before accepting or retaining index data. The patch checks ferror(), checks that fwrite() wrote the full output, unlinks the output file on failure, verifies ZSTD_decompressStream returned 0 (stream complete), and returns MPORT_ERR_FATAL so index-fetch callers abort. Affected CPE: cpe:2.3:a:midnightbsd:mport:*:*:*:*:*:*:*:* (prior to 2.7.8).

Know when Mport gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.8 MEDIUM

Network-delivered but requires controlling/impersonating a mirror (AC:H), no auth (PR:N); index corruption is I:L and package-operation disruption A:L, no confidentiality (C:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 17, 2026 - 18:19 EUVD
CVE Published
Sep 17, 2026 - 16:51 cve.org
HIGH 8.3

DescriptionCVE.org

mport is the MidnightBSD Package Manager. Prior to 2.7.8, libmport/util.c did not make every truncated, corrupt, or failed zstd stream fatal in mport_decompress_zstd(), and libmport/fetch.c did not consistently propagate those failures to index-fetch callers. A malicious or faulty mirror could supply compressed package index data that caused ZSTD_decompressStream() or an output write to fail while leaving partial index output available for later use, resulting in package-index integrity loss or denial of service. This issue is fixed in version 2.7.8.

Technical POC Analysis

Improper Validation of Integrity Check Value (CWE-354) with a secondary CWE-755 (Improper Handling of Exceptional Conditions) in MidnightBSD's mport package manager, component libmport/util.c and lib…

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

MidnightBSD mport versions before 2.7.8 are affected by a package-index corruption and denial-of-package-management vulnerability that can be triggered when a malicious or faulty package mirror supplies corrupt zstd-compressed index data. Exploitation requires control or man-in-the-middle of a mirror, but successful attacks can disrupt software installation and updates, potentially delaying critical security patches for affected systems. Leadership should prioritize upgrading to mport 2.7.8 and securing mirror trust relationships to maintain operational resilience.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 83% exploitable
Prevalence
Low
MidnightBSD is a niche BSD derivative with tiny production footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Mport

View all
CVE-2026-54583 HIGH
8.3 Sep 17

Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who con

CVE-2026-54581 HIGH
8.3 Sep 17

MidnightBSD's mport package manager prior to 2.7.8 can accept a tampered bootstrap package index as verified, because th

CVE-2026-54586 MEDIUM
6.0 Sep 17

On-path tampering with package-fetch traffic in MidnightBSD's mport package manager lets a network-positioned attacker s

CVE-2026-54585 MEDIUM
6.0 Sep 17

Path traversal in MidnightBSD mport before 2.7.8 allows a crafted package manifest to make the privileged sample-file ha

CVE-2026-54582 MEDIUM
6.0 Sep 17

Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace

CVE-2026-54575 MEDIUM
5.8 Sep 17

Path-racing and shell-invocation weaknesses in the MidnightBSD mport package manager (all versions prior to 2.7.8) let a

CVE-2026-54576 MEDIUM
5.8 Sep 17

Filesystem integrity compromise in MidnightBSD's mport package manager (versions prior to 2.7.8): a local user who alrea

CVE-2026-54587 MEDIUM
5.8 Sep 17

Symlink following and dot-dot path traversal in MidnightBSD mport prior to 2.7.8 lets a local attacker who can already w

CVE-2026-54584 MEDIUM
5.3 Sep 21

MidnightBSD's mport package manager before 2.7.8 trusts the TMPDIR environment variable when extracting package metafile

CVE-2026-54579 LOW
2.3 Sep 17

Spoofed or injected ICMP echo replies can steer mport's mirror-latency selection toward an attacker-chosen mirror and, i

CVE-2026-54577 LOW
2.0 Sep 17

MidnightBSD's mport package manager, in all versions prior to 2.7.8, mis-parses the argument list for its 'audit' subcom

CVE-2026-54578 LOW
2.0 Sep 17

Checksum verification in MidnightBSD's mport package manager before 2.7.8 can silently continue after a hashing failure,

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy