Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise or MITM package index/mirror
-
DeliveryInject '../' or '/'-laden bundlefile into index entry
-
ExploitVictim runs mport download/install
-
ExecutionUnchecked filename composed into write path
-
ImpactPackage data written outside cache to attacker-chosen path
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control the content of the package index that mport consumes - specifically the ability to set indexEntry->bundlefile (via a malicious or compromised package mirror/repository, or a man-in-the-middle position on the download channel). The victim must then invoke mport to download or install a package (mport_fetch_bundle / fetch_bundle_to_dir / mport_download code paths) so the crafted filename is composed into a write path. It affects MidnightBSD mport versions prior to 2.7.8; installations that fetch only from trusted, integrity-protected indexes are not practically exploitable. This precondition (reflected as CVSS 4.0 AT:P) is the primary limiting factor rather than authentication or user-interaction on the local system. |
| Impact | This is a genuine but conditionally-gated integrity flaw, not a drive-by remote code execution bug. The vendor CVSS 4.0 vector (8.3, AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L) is internally consistent with the description: the critical qualifier is AT:P (Attack Requirements: Present), which encodes that exploitation depends on the attacker first placing a malicious value into the package index data that mport consumes - the vulnerability is not reachable against a benign, trusted mirror. Impact is correctly integrity-dominant (VI:H arbitrary file write outside the cache) with no confidentiality (VC:N) and only limited availability (VA:L). No EPSS score, KEV listing, or public exploit was provided in the intelligence, so the exploitation status is 'no public exploit identified at time of analysis'; the 8.3 rating is severity-of-impact, not likelihood-of-widespread-exploitation. The realistic risk is materially lowered by two factors the raw score partly obscures: the attacker must control or poison the package index (compromised/malicious mirror or MITM on the fetch channel), and the affected product - MidnightBSD's mport - has a tiny deployment footprint. Net: treat as a real supply-chain-style priority for MidnightBSD operators who fetch from untrusted mirrors, but low aggregate real-world risk given prevalence and the required precondition. |
| Exploit ScenarioDerived | An attacker who controls or can tamper with a MidnightBSD package index (a malicious/compromised mirror, or an on-path MITM against the fetch channel) sets indexEntry->bundlefile to a value containing '..', a leading/embedded '/', or a dot/empty name. When a victim runs mport to download or install a package, the unchecked filename is composed into the write path, causing package data to be written outside the intended cache directory or to an unsafe destination name. No public exploit code was provided in the intelligence, and successful exploitation requires the poisoned-index precondition (CVSS AT:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Path traversal in the MidnightBSD mport package manager (libmport/fetch.c) before version 2.7.8 lets an attacker who controls package index data smuggle an unsafe value into indexEntry->bundlefile so that downloaded package data is written outside the intended cache directory or to an attacker-chosen filename. Unauthenticated remote attackers can exploit this only if they can influence the index that mport consumes, for example through a malicious or compromised package mirror or a man-in-the-middle position on the download channel, and only when the victim subsequently runs mport to download or install a package; the independent assessment rates this as a conditionally-gated integrity flaw (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L) rather than drive-by remote code execution, with no confidentiality impact and only limited availability impact. There is no public exploit code identified at time of analysis and no confirmed active exploitation (not in CISA KEV); vendor-assigned CVSS 4.0 base is 8.3, reflecting the same high integrity impact.
RemediationAI
Upgrade mport to version 2.7.8 or later (vendor-released patch: 2.7.8), available from the MidnightBSD mport 2.7.8 release page at https://github.com/MidnightBSD/mport/releases/tag/2.7.8; the fix is also visible in the advisory at https://github.com/MidnightBSD/mport/security/advisories/GHSA-mr62-mqwj-vhh3, pull request https://github.com/MidnightBSD/mport/pull/125 and commit https://github.com/MidnightBSD/mport/commit/cad959d47bc79a62b6a7163800fbfe35633e7cf8, so distributions that package mport should backport that commit if they cannot move to 2.7.8. Because exploitation requires an attacker to control the package index mport consumes, the practical compensating controls are to fetch only from trusted, integrity-protected repositories, to enforce TLS certificate validation and avoid HTTP mirrors or untrusted third-party mirrors, and to verify signed index metadata where available; the trade-off is reduced mirror flexibility and possible installation failures if a mirror cannot be authenticated, and these controls do not protect against a compromised trusted mirror. Disabling or restricting automatic package fetches (for example, using only locally staged package files) would remove the vulnerable download paths entirely, at the cost of losing normal package installation and update functionality, and no workaround substitutes for installing 2.7.8.
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
The flaw is a classic CWE-22 improper limitation of a pathname to a restricted directory (path traversal) in mport's C library, libmport/fetch.c. Package metadata from an index is parsed into an indexEntry structure whose bundlefile field is later composed into a download/write path by mport_fetch_bundle(), fetch_bundle_to_dir() and mport_download(). Before 2.7.8 the code only rejected NULL, empty and slash-containing filenames inline at two call sites and performed no validation at all on indexEntry->bundlefile, so values such as '.', '..' or names containing '/' could survive into the write path. The fix (GitHub PR 125, commit cad959d47bc79a62b6a7163800fbfe35633e7cf8) introduces a single is_valid_bundle_filename() helper that rejects NULL, empty strings, '.' and '..', and any filename containing '/', and applies it both to the existing entry points and to the index-derived bundle filename in mport_download(). The root cause is therefore insufficient input validation of externally supplied index fields, not a memory-safety defect; it is an integrity/availability issue against the local package cache and filesystem, which the CPE cpe:2.3:a:midnightbsd:mport:*:*:*:*:*:*:*:* confirms covers all mport releases prior to 2.7.8 on MidnightBSD.
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:H/VA:L/SC:N/SI:N/SA:N
Network-delivered via package fetch (AV:N) but requires attacker-controlled/poisoned index, mapped to AC:H in 3.1; no auth (PR:N); arbitrary file write gives I:H with limited A:L and no C.
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/fetch.c did not consistently reject empty, dot, dot-dot, or slash-containing bundle filenames before composing package download and write paths. Malicious package index data could place an unsafe value in indexEntry->bundlefile, and the missing is_valid_bundle_filename() checks allowed downloaded package data to be written outside the intended cache location or to an unsafe destination name. This issue is fixed in version 2.7.8.
Technical POC Analysis
CWE-22 (path traversal), with CWE-73 (external control of file name or path) as the secondary weakness assigned in the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
MidnightBSD's mport package manager is affected by a high-severity path traversal flaw that can allow a malicious or compromised package index, or a man-in-the-middle attacker, to cause package data to be written outside the intended cache directory when an administrator or user runs mport to download or install software. This creates a supply-chain integrity risk for organizations relying on MidnightBSD hosts, because unauthorized file placement could undermine system trust, though exploitation is conditionally gated and requires influence over the package index plus a user-initiated mport operation. No public exploit identified at time of analysis and no confirmed active exploitation (not in CISA KEV), but no vendor-released patch identified at time of analysis means leadership should prioritize interim controls and source verification for affected systems.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict mport to trusted, officially maintained mirrors over HTTPS with certificate validation; verify package index signatures or checksums before use; avoid untrusted or compromised mirrors; monitor for unexpected files written outside the intended mport cache directory; and limit mport execution to privileged administrators on affected MidnightBSD systems. If MidnightBSD mport 2.7.8 or later becomes available, 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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Package-index corruption and denial of package-management operations affect MidnightBSD mport before 2.7.8 when a malici
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-82319
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB