CVE Catalog

CVE-2026-54584

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.47%

38th percentile - higher than 38% of all known CVEs

Summary

mport (the MidnightBSD Package Manager) before version 2.7.8 used TMPDIR while extracting package metafiles, even 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.

Risk Assessment

Potential overwriting of files or placing malicious files in the system, possibly leading to privilege escalation or system integrity compromise.

Recommendation

Update mport to version 2.7.8, which ignores unsafe TMPDIR and rejects empty TMPDIR.

Other vulnerabilities in mport

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS