CVE Catalog

CVE-2026-54583

HighCVSS 8.3
Published: Translated: NVD NIST

Summary

MidnightBSD Package Manager (mport) prior to 2.7.8 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 cause downloaded package data to be written outside the intended cache location or to an unsafe destination name.

Risk Assessment

An attacker controlling the package index could cause files to be written to unintended locations, potentially overwriting important files or enabling further attack escalation.

Recommendation

Update mport to version 2.7.8 or later, which includes the fix for bundle filename validation.

Other vulnerabilities in mport

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS