Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl or impersonate package mirror
-
DeliveryServe truncated/corrupt zstd index
-
ExploitDecompression failure not made fatal
-
ExecutionPartial index written and reused
-
ImpactPackage-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who con
MidnightBSD's mport package manager prior to 2.7.8 can accept a tampered bootstrap package index as verified, because th
On-path tampering with package-fetch traffic in MidnightBSD's mport package manager lets a network-positioned attacker s
Path traversal in MidnightBSD mport before 2.7.8 allows a crafted package manifest to make the privileged sample-file ha
Package file overwrite in MidnightBSD mport prior to 2.7.8 allows a crafted package installed with privileges to replace
Path-racing and shell-invocation weaknesses in the MidnightBSD mport package manager (all versions prior to 2.7.8) let a
Filesystem integrity compromise in MidnightBSD's mport package manager (versions prior to 2.7.8): a local user who alrea
Symlink following and dot-dot path traversal in MidnightBSD mport prior to 2.7.8 lets a local attacker who can already w
MidnightBSD's mport package manager before 2.7.8 trusts the TMPDIR environment variable when extracting package metafile
Spoofed or injected ICMP echo replies can steer mport's mirror-latency selection toward an attacker-chosen mirror and, i
MidnightBSD's mport package manager, in all versions prior to 2.7.8, mis-parses the argument list for its 'audit' subcom
Checksum verification in MidnightBSD's mport package manager before 2.7.8 can silently continue after a hashing failure,
EUVD-2026-82322
NVD
CVE.org
EPSS
GitHub
Exploit-DB