mport is the MidnightBSD Package Manager. Prior to 2.7.8, libmport/fetch.c did not consistently reject empty, dot, dot-dot, or slash-containing bundle filenames before composing package download and write paths. Malicious package index data could place an unsafe value in indexEntry->bundlefile, and the missing isvalidbundlefilename() checks allowed downloaded package data to be written outside the intended cache location or to an unsafe destination name. This issue is fixed in version 2.7.8.
mport is the MidnightBSD Package Manager. Prior to 2.7.8, the mportfetchindex(), mportfetchbootstrapindex(), and mportfetchbundle() paths in libmport/fetch.c accepted non-HTTPS repository and package mirror URLs without a urlishttps() enforcement check. When a cleartext URL was configured or returned by mirror data, a network-positioned attacker could tamper with package index or package download traffic and compromise package selection or integrity. This issue is fixed in version 2.7.8.