MidnightBSD mport
mport package bundle downloads allow unsafe destination filenames
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 is_valid_bundle_filename() 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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.3high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
MidnightBSD mport
- < 2.7.8
Fixed in 2.7.8
Mitigation
Upgrade mport to 2.7.8 or later.
References
- Vendor advisory github.com/MidnightBSD/mport/security/advisori…
- Patch github.com/MidnightBSD/mport/pull/125
- Patch github.com/MidnightBSD/mport/commit/cad959d47b…
1 more
- Release notes github.com/MidnightBSD/mport/releases/tag/2.7.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.