{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.7.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c643312d149dcc994957dbafa8f6f6b61e945e39"
            },
            {
              "fixed": "899c8fe2d3ceb25d899e70dbd0c7744b7d7a0946"
            }
          ],
          "repo": "https://github.com/midnightbsd/mport",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5773-7r4r-rpgx"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-668",
      "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54582.json"
  },
  "details": "mport is the MidnightBSD Package Manager. Prior to 2.7.8, package installation lacked a preflight check for incoming non-directory assets that already existed on disk. The affected logic across libmport/check_preconditions.c, libmport/install_primative.c, and libmport/mport_private.h did not apply MPORT_PRECHECK_FILE_CONFLICTS, so a crafted or conflicting package could overwrite a file owned by another package or unmanaged by mport. The check is bypassed only when the operator explicitly enables mport-\u003eforce. Privileged installation without that override could compromise local filesystem integrity and package database consistency. This issue is fixed in version 2.7.8.",
  "id": "CVE-2026-54582",
  "modified": "2026-09-19T03:30:35.283961276Z",
  "published": "2026-09-17T16:50:40.434Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/MidnightBSD/mport/releases/tag/2.7.8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54582.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/MidnightBSD/mport/security/advisories/GHSA-5773-7r4r-rpgx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54582"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/commit/c643312d149dcc994957dbafa8f6f6b61e945e39"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/pull/131"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "mport package installation can overwrite existing unmanaged or differently owned files"
}