{"schemaVersion":3,"id":"CVE-2026-54577","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-09-17T16:49:48.323Z","modified":"2026-09-24T20:55:22.326Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":2,"severity":"low","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2,"severity":"low","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2,"severity":"low","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0016,"percentile":0.04823,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.007000000000000018,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00153},"history":[{"date":"2026-09-18T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0016,"percentile":0.04823}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00153,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0016,"percentile":0.04823}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-693","name":"Protection Mechanism Failure","description":"The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.","type":"weakness","status":"Draft","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/693.html"}],"affected":[{"vendor":"midnightbsd","product":"mport","name":"mport","label":"mport","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.7.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.8","eol":null,"hubHref":"/vendor/midnightbsd/mport"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/MidnightBSD/mport/security/advisories/GHSA-h3m9-vj4v-c35h","label":"github.com/MidnightBSD/mport/security/advisories/GHSA-h3m9-vj4v-c35h","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/MidnightBSD/mport/pull/149","label":"github.com/MidnightBSD/mport/pull/149","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/MidnightBSD/mport/commit/b897240dc8181c53fbee231e77f88657c1edb9a0","label":"github.com/MidnightBSD/mport/commit/b897240dc8181c53fbee231e77f88657c1edb9a0","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/MidnightBSD/mport/releases/tag/2.7.8","label":"github.com/MidnightBSD/mport/releases/tag/2.7.8","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-17T16:49:48.323Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-24T20:55:22.326Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":8,"level":"minimal","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:41:12.457Z","stale":false,"partial":false}}