CVE-2026-54584 PUBLISHED

mport trusts environment-controlled temporary directories in privileged metadata extraction

Assigner: GitHub_M
Reserved: 15.06.2026 Published: 21.09.2026 Updated: 21.09.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.3

Product Status

Vendor MidnightBSD
Product mport
Versions
  • Version < 2.7.8 is affected

References

Problem Types

  • CWE-73: External Control of File Name or Path CWE
  • CWE-377: Insecure Temporary File CWE