Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator runs mport audit with leading option
-
ExploitStale optind passes option token to audit_package
-
ExecutionWrong token audited, package skipped
-
ImpactVulnerable package reported clean and left unpatched
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Triggered when the operator or automation invokes mport's |
| Impact | This is a genuinely low-risk issue and the signals are internally consistent. The vendor CVSS 4.0 score of 2.0 (AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N) reflects a local, low-privilege tooling logic bug, not a memory-corruption or privilege-escalation flaw. There is no EPSS score, no CISA KEV listing, and no public exploit - so exploitation status is 'no public exploit identified at time of analysis.' Critically, this is not an 'attack' in the conventional sense: the flaw is a parsing bug in mport's own |
| Exploit ScenarioDerived | An operator (or CI/automation) runs |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
MidnightBSD's mport package manager, in all versions prior to 2.7.8, mis-parses the argument list for its 'audit' subcommand, so when an option such as -r is placed before the package name the tool audits the option token instead of the requested package and returns a false-negative result. The flaw is reachable only by a local user with low privileges who already has the ability to run mport, requires the specific option-before-argument invocation ordering, and is not remotely triggerable - there is no adversary-controlled input path. The practical consequence is that an operator or automation script may believe a vulnerable package is clean, leaving it unpatched; there is no public exploit identified at time of analysis and the issue is not listed in CISA KEV. Vendor-released patch: 2.7.8.
RemediationAI
Upgrade to mport 2.7.8, which is the vendor-released patched version containing the corrected argument handling ('optind = 1' plus 'optreset = 1' reset under MidnightBSD and use of the adjusted local_argc/local_argv when calling audit_package()); the fix landed via pull request https://github.com/MidnightBSD/mport/pull/149 and commit b897240dc8181c53fbee231e77f88657c1edb9a0, with the release at https://github.com/MidnightBSD/mport/releases/tag/2.7.8. If immediate upgrade is not possible, the practical compensating control is to avoid the vulnerable invocation pattern: run the audit subcommand with the package name as the first argument and without a leading option token (that is, do not place -r or other flags before the package name), since the defect only manifests when an option precedes the argument and stale optind state causes the option token to be audited instead of the package. Because this workaround depends on every operator and every automation script using the correct ordering, it is fragile; a second control is to independently verify audit results by manually comparing installed package versions against MidnightBSD security advisories or by querying the vulnerability index directly, at the cost of additional manual effort and a slower patch cadence. Auditing should be treated as unreliable on any version below 2.7.8, and scripts that consumed the tool's exit status or output for gating should be re-run after upgrading to confirm previously suppressed findings.
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
CVE-2026-54577 is an improper input validation (CWE-20) defect in the argument-handling code of mport/mport.c, the CLI front end of the MidnightBSD package manager. The audit path in main() built option-adjusted copies of the argument vector (local_argc/local_argv derived by subtracting and advancing past optind) but then called audit_package() with the original, unadjusted argument entry. Because optind/optreset were not reset between the initial option scan and the subsequent use of the adjusted arguments, the parser could resume at a stale index and hand audit_package() the option token itself rather than the package name it was meant to inspect. MidnightBSD libc uses the non-portable optreset flag, which is why the fix wraps '#if defined(__MidnightBSD__) optreset = 1; #endif' together with 'optind = 1' before re-scanning argv with the final option string, then recomputes local_argc = argc - optind and local_argv = argv + optind so the audit routine receives the correctly positioned package argument. The same refactor was applied to the download path (-a/-d flags) and cleaned up const-correctness of edge/char pointers. The vulnerability class is a self-inflicted parsing error in a local administration utility: it does not cross a trust boundary, does not expose data, and does not permit code execution, but it degrades the integrity of a security-relevant audit result, which is why the assessed impact is integrity-only and low. The affected CPE is cpe:2.3:a:midnightbsd:mport, covering every release before 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:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Local CLI tool (AV:L) run by an operator (PR:L); only triggers under specific option-before-argument ordering (AC:H); sole impact is a misleading audit result (I:L, C/A:N).
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, the audit command in mport/mport.c computed option-adjusted local_argv and local_argc values but passed the original argument entry to audit_package(). When an operator or automation used an option such as -r before a package name, stale optind state and the unadjusted argument could cause mport to audit the option token instead of the requested package, producing a false-negative or useless result that could leave a vulnerable package unidentified. The corrected parsing resets optind and optreset before using the adjusted local arguments. 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
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
Checksum verification in MidnightBSD's mport package manager before 2.7.8 can silently continue after a hashing failure,
EUVD-2026-82320
NVD
CVE.org
EPSS
GitHub
Exploit-DB