Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.3
CVE-2026-54577: MidnightBSD mport audit may check wrong package
CVE-2026-54577 · published 2 months ago
Summary
The MidnightBSD package manager (mport) versions before 2.7.8 could examine an option flag instead of the intended package when the audit command was used with options like -r. This could cause a vulnerable package to be missed during the audit. Update mport to version 2.7.8 or later to ensure audits check the correct packages.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| midnightbsd | mport | < 2.7.8 |
Original advisory text
mport audit can inspect the wrong package when options are present
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.
References
- https://github.com/MidnightBSD/mport/releases/tag/2.7.8 URL
- https://github.com/MidnightBSD/mport/security/advisories/GHSA-h3m9-vj4v-c35h Vendor Advisory
- https://github.com/MidnightBSD/mport/commit/b897240dc8181c53fbee231e77f88657c1ed... Patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54577... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-54577 Vendor Advisory
- https://github.com/MidnightBSD/mport/pull/149 Patch
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
6.3
Medium
Type
CWE-20Improper Input Validation
CWE-693Protection Mechanism Failure
Timeline
Published17 Sep 2026
Updated12 Nov 2026
First seen17 Sep 2026
Track software like this
Free during beta