CVE-2026-54577

mport audit can inspect the wrong package when options are present

State
Published
Severity
2.0 Low
Published
Sep 17, 2026
Updated
Sep 24, 2026
Reserved
Jun 15, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.02.0 LowCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-693 Protection Mechanism Failure

Affected Products

ProductVersions
mportMidnightBSD
  • < 2.7.8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.