{
  "id": "CVE-2026-54583",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-54583",
  "published_at": "2026-09-17T16:46:28.371Z",
  "title": "mport package bundle downloads allow unsafe destination filenames",
  "vendor": "MidnightBSD",
  "product": "mport",
  "cvss": {
    "score": 8.3,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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-\u003ebundlefile, 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.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 8.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "MidnightBSD",
        "product": "mport",
        "ranges": [
          "\u003c 2.7.8"
        ],
        "fixed_in": [
          "2.7.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mport to 2.7.8 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/MidnightBSD/mport/security/advisories/GHSA-mr62-mqwj-vhh3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/MidnightBSD/mport/pull/125"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/MidnightBSD/mport/commit/cad959d47bc79a62b6a7163800fbfe35633e7cf8"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/MidnightBSD/mport/releases/tag/2.7.8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
