{"id":"CVE-2026-54577","revision":"e39e88ee22f1419aafda9b76c6d339ca","records":[{"revision":"e39e88ee22f1419aafda9b76c6d339ca","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-54577","aliases":[],"title":"mport audit can inspect the wrong package when options are present","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.","state":0,"publishedAt":"2026-09-17T16:49:48.323+00:00","modifiedAt":"2026-09-24T20:55:22.326+00:00","affected":[{"ecosystem":"Vendor product","name":"mport","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"MidnightBSD\",\n                    \"product\": \"mport\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.7.8\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":2,"severity":"LOW"}],"references":["https://github.com/MidnightBSD/mport/security/advisories/GHSA-h3m9-vj4v-c35h","https://github.com/MidnightBSD/mport/pull/149","https://github.com/MidnightBSD/mport/commit/b897240dc8181c53fbee231e77f88657c1edb9a0","https://github.com/MidnightBSD/mport/releases/tag/2.7.8"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54577","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-54577","identifiers":["CVE-2026-54577"]},"retained":false,"historicalAffected":[]}],"coverage":[]}