{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.7.8"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "899c8fe2d3ceb25d899e70dbd0c7744b7d7a0946"
            },
            {
              "fixed": "3790fa49a36cb085f48b204ef189fb82bbee621a"
            }
          ],
          "repo": "https://github.com/midnightbsd/mport",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4vv3-3h8r-q6mq"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-377",
      "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54584.json"
  },
  "details": "mport is the MidnightBSD Package Manager. mport before 2.7.8 used TMPDIR while extracting package metafiles, including when running as root or in setuid/setgid contexts. An attacker able to control the environment for a privileged mport invocation could redirect temporary metadata extraction to an attacker-controlled location. PR 123 ignores unsafe TMPDIR values in privileged contexts and rejects empty TMPDIR. This issue has been patched in version 2.7.8.",
  "id": "CVE-2026-54584",
  "modified": "2026-09-27T03:30:40.645292742Z",
  "published": "2026-09-21T14:05:48.447Z",
  "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-54584.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/MidnightBSD/mport/security/advisories/GHSA-4vv3-3h8r-q6mq"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54584"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/commit/3790fa49a36cb085f48b204ef189fb82bbee621a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MidnightBSD/mport/pull/123"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "mport trusts environment-controlled temporary directories in privileged metadata extraction"
}