Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local foothold with write access to install tree
-
DeliveryPlant symlink or dot-dot dir component
-
ExploitWait for privileged mport package install
-
Executionmkdirp/chown/chmod follows attacker path
-
ImpactDirectory/attributes altered outside package dirs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Requires (1) a local attacker who already has write access to part of the target installation tree on a MidnightBSD host running mport prior to 2.7.8, and (2) a privileged package install processing ASSET_DIR or ASSET_DIR_OWNER_MODE directory assets to occur while the attacker's symlink or dot-dot path is in place. Exploitation is limited by the need for that pre-existing local foothold (PR:L), the TOCTOU timing/race against a privileged install (AC:H, AT:P), and the absence of any remote or unauthenticated path - this cannot be triggered over the network or against a default idle system. Impact is confined to directory creation and ownership/permission changes on attacker-selected paths (integrity), with no confidentiality exposure. |
| Impact | This is a genuine but sharply gated local integrity flaw, not a mass-exploitation priority. The vendor CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L, VC:N/VI:H/VA:L) is internally consistent and I agree with it: exploitation is local-only, requires an already-present low-privileged foothold, and is race/precondition-dependent (AT:P, AC:H) because the attacker must plant a symlink or dot-dot path in the target install tree and then win a TOCTOU window while a privileged package install runs. Impact is integrity-focused (high) plus limited availability, with no confidentiality exposure. No EPSS score, no CISA KEV listing, and no public POC are present in the source data, so exploitation status is 'no public exploit identified at time of analysis' - the multi-source signals uniformly point to low real-world urgency. One data conflict to flag: the input Tags label this 'Information Disclosure,' which directly contradicts the CVSS confidentiality metric (VC:N/C:N); the CWE-59 (symlink following) classification and the fix diff (O_NOFOLLOW hardening, dot-dot rejection) confirm this is a filesystem-integrity issue, not information disclosure. Net: a high-CVE-quality but low-real-risk, hard-to-reach local vulnerability in a niche product. |
| Exploit ScenarioDerived | A local unprivileged (or semi-privileged) user with write access to part of the installation tree pre-plants symlinks or dot-dot directory components where mport will process ASSET_DIR/ASSET_DIR_OWNER_MODE entries. When an administrator then runs a privileged package install, mport's path-based mkdirp/chown/chmod operations follow the attacker's symlink and create directories or change ownership/permissions on attacker-chosen paths outside the package's intended directories. No public exploit code is identified; the attack is a TOCTOU race (AC:H/AT:P) and requires the privileged install to occur while the malicious path is in place. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Symlink following and dot-dot path traversal in MidnightBSD mport prior to 2.7.8 lets a local attacker who can already write to part of the target installation tree redirect directory creation and ownership/permission changes to attacker-selected paths during a privileged package installation. The flaw sits in the ASSET_DIR and ASSET_DIR_OWNER_MODE handling in libmport/bundle_read_install_pkg.c, which performed path-based mport_mkdirp(), chown and chmod operations (CWE-59); impact is integrity-only, since an attacker can create directories or alter ownership and mode on paths outside the intended package directories with no confidentiality exposure. Exploitation is sharply gated: it requires an existing local foothold (PR:L per the CVSS vector), a privileged install of a bundle containing directory assets, and winning the TOCTOU race to place the symlink or '..' path first; no public exploit has been identified at time of analysis and there is no CISA KEV listing. The CVSS 4.0 base score of 5.8 and vector AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L align with the independently assessed CVSS:3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L, confirming a genuine but narrowly gated local integrity issue rather than a mass-exploitation priority.
RemediationAI
Vendor-released patch: upgrade mport to 2.7.8, available from https://github.com/MidnightBSD/mport/releases/tag/2.7.8, which contains the file-descriptor-based directory asset handling introduced by commit a4fa996df1fbebeff3691e1b512c807b5f414b5d via PR https://github.com/MidnightBSD/mport/pull/119; consult the vendor advisory GHSA-f69w-h3gh-r86p for details. Until all hosts can be updated, the primary compensating control is to remove the local foothold the flaw depends on by making the entire installation prefix tree (for example /usr/local and any other package root) owned by root with no group- or world-write permission and ensuring no intermediate directory along any package asset path is a symlink - the trade-off is that workflows where non-root maintainers stage files inside the prefix will break and must be moved to a staging area outside it. Also restrict privileged installs to bundles from trusted sources with verified checksums and avoid running mport installs of untrusted packages as root, which limits an attacker's ability to get a crafted ASSET_DIR path processed at the cost of manual review effort. The affected versions expose no configuration switch to disable ASSET_DIR or ASSET_DIR_OWNER_MODE processing, so applying the 2.7.8 patch remains the only complete fix.
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 package manager for MidnightBSD, and its libmport installer processes package manifest assets of type ASSET_DIR and ASSET_DIR_OWNER_MODE, which instruct the installer to create a directory and optionally set its owner, group and mode. Prior to 2.7.8, bundle_read_install_pkg.c performed those operations on a pathname basis: mport_mkdirp() built the directory hierarchy from a string and the subsequent ownership and permission changes were applied by path, so any symlink or '..' component in the intermediate path was followed - the CWE-59 (Improper Link Resolution Before File Access) class. Because package installation runs with elevated privileges, a local user who can modify part of the installation tree can substitute a symlink or a traversal component and have the privileged process create directories or change ownership/permissions on an attacker-chosen location; this is a TOCTOU/link-following condition (AT:P, AC:H) rather than a direct access-control bypass, and the attacker cannot read data through it. The upstream fix in PR 119 rewrites the logic as create_dir_asset_fd() and apply_dir_asset_attrs(): it duplicates mport->rootfd, walks each path component with mkdirat()/openat() using O_NOFOLLOW|O_DIRECTORY|O_CLOEXEC, explicitly rejects any '..' component with a 'Refusing unsafe directory path' error, snapshots umask instead of mutating process-wide state, and then applies fchmod()/ownership changes on the already-open directory file descriptor after an fstat() S_ISDIR check, so symlinks can no longer be followed out of the intended tree.
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:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Local foothold and TOCTOU symlink race give AV:L/AC:H/PR:L; UI:N since the privileged install is admin-driven, not attacker-solicited; integrity-only high impact with minor availability, no confidentiality.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
mport is the MidnightBSD Package Manager. Prior to 2.7.8, directory assets handled as ASSET_DIR or ASSET_DIR_OWNER_MODE in libmport/bundle_read_install_pkg.c used path-based mport_mkdirp(), ownership, and permission operations. A local attacker able to modify part of the target installation tree could use dot-dot traversal or substitute symlinks during privileged package installation, causing directory creation or attribute changes to affect attacker-selected paths outside the intended package directories. This issue is fixed in version 2.7.8.
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
Package-index corruption and denial of package-management operations affect MidnightBSD mport before 2.7.8 when a malici
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
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-82328
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB