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
VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
Type
CWE-20Improper Input Validation
CWE-693Protection Mechanism Failure
Timeline
Published17 Sep 2026
Updated12 Nov 2026
First seen17 Sep 2026
Sources
CVE-2026-54577 · MITRE
Track software like this
Free during beta