PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-54586 MidnightBSD CVE debrief

A vulnerability in the MidnightBSD Package Manager (mport) prior to version 2.7.8 allows for tampering with package index or package download traffic when a cleartext URL is configured or returned by mirror data. This issue is fixed in version 2.7.8. The vulnerability exists in the mport_fetch_index(), mport_fetch_bootstrap_index(), and mport_fetch_bundle() paths in libmport/fetch.c, where HTTPS enforcement checks were lacking. A network-positioned attacker could exploit this to compromise package selection or integrity. Defenders should prioritize verifying and updating mport to version 2.7.8 or later and review configured repository and package mirror URLs for HTTPS usage.

Vendor
MidnightBSD
Product
mport
CVSS
MEDIUM 6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-09-17
Original CVE updated
2026-09-21
Advisory published
2026-09-17
Advisory updated
2026-09-21

Who should care

Defenders responsible for MidnightBSD systems and package management should assess exposure and prioritize verification and remediation. This includes reviewing configured repository and package mirror URLs for HTTPS usage and verifying the update to version 2.7.8 or later. Security teams and operators managing MidnightBSD deployments should be aware of the potential impact and take necessary actions.

Why it matters

Defenders should prioritize verifying and updating mport to version 2.7.8 or later, and review configured repository and package mirror URLs for HTTPS usage, as a network-positioned attacker could tamper with package index or package download traffic.

  • Tampering with package index or package download traffic
  • Compromise of package selection or integrity
  • Potential for unauthorized package modifications
  • Verification of HTTPS usage for repository and package mirrors

Technical summary

The mport_fetch_index(), mport_fetch_bootstrap_index(), and mport_fetch_bundle() paths in libmport/fetch.c did not enforce HTTPS for repository and package mirror URLs. A network-positioned attacker could tamper with package index or package download traffic, compromising package selection or integrity. The fix in version 2.7.8 adds HTTPS enforcement checks to prevent such tampering. Defenders should prioritize verifying and updating mport to version 2.7.8 or later and review configured repository and package mirror URLs for HTTPS usage.

Defensive priority

Defenders should prioritize verifying and updating mport to version 2.7.8 or later, and review configured repository and package mirror URLs for HTTPS usage.

Recommended defensive actions

  • Verify and update mport to version 2.7.8 or later
  • Review configured repository and package mirror URLs for HTTPS usage
  • Monitor package index and download traffic for potential tampering
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The CVE record and NVD entry provide details on the vulnerability. Source references include commits, pull requests, and release notes related to the fix. Specifically, the fix involves adding HTTPS enforcement checks in the mport_fetch_index(), mport_fetch_bootstrap_index(), and mport_fetch_bundle() paths in libmport/fetch.c. Defenders should verify the fix and review mirror URLs for HTTPS usage.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-54586 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-54586

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-54586 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54586

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.