# CVE-2026-54583: mport package bundle downloads allow unsafe destination filenames

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-09-17T16:46:28.371Z
- Modified: 2026-09-17T21:15:06.427Z
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MidnightBSD mport: < 2.7.8

## References

- <https://github.com/MidnightBSD/mport/security/advisories/GHSA-mr62-mqwj-vhh3>
- <https://github.com/MidnightBSD/mport/pull/125>
- <https://github.com/MidnightBSD/mport/commit/cad959d47bc79a62b6a7163800fbfe35633e7cf8>
- <https://github.com/MidnightBSD/mport/releases/tag/2.7.8>

## Sources

- CVE List: [CVE-2026-54583](https://www.cve.org/CVERecord?id=CVE-2026-54583), CVE Terms of Use, modified 2026-09-17
- NVD: [CVE-2026-54583](https://nvd.nist.gov/vuln/detail/CVE-2026-54583), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2026-54583 · Whole record: https://cve.day/CVE-2026-54583.json · Rebuilt by cve.day 2026-11-25T22:59:39.282Z
