{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.7.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a4fa996df1fbebeff3691e1b512c807b5f414b5d"
            },
            {
              "fixed": "899c8fe2d3ceb25d899e70dbd0c7744b7d7a0946"
            }
          ],
          "repo": "https://github.com/midnightbsd/mport",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-f69w-h3gh-r86p"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-367",
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54587.json"
  },
  "details": "mport is the MidnightBSD Package Manager. Prior to 2.7.8, directory assets handled as ASSET_DIR or ASSET_DIR_OWNER_MODE in libmport/bundle_read_install_pkg.c used path-based mport_mkdirp(), ownership, and permission operations. A local attacker able to modify part of the target installation tree could use dot-dot traversal or substitute symlinks during privileged package installation, causing directory creation or attribute changes to affect attacker-selected paths outside the intended package directories. This issue is fixed in version 2.7.8.",
  "id": "CVE-2026-54587",
  "modified": "2026-09-19T03:30:44.494849825Z",
  "published": "2026-09-17T16:56:33.174Z",
  "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-54587.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/MidnightBSD/mport/security/advisories/GHSA-f69w-h3gh-r86p"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54587"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/commit/a4fa996df1fbebeff3691e1b512c807b5f414b5d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/pull/119"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "mport directory asset installation is vulnerable to symlink and path traversal races"
}