CVE-2026-54575: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MidnightBSD mport
CVE-2026-54575 is an OS command injection vulnerability in MidnightBSD's mport package manager prior to version 2.7.8. The flaw arises from race conditions in path handling during privileged package fetch and cache-cleaning operations, combined with shell-form command invocation. A local attacker with write access to package cache or staging paths could exploit this to redirect package-related operations outside intended directories. This vulnerability is fixed in version 2.7.8.
AI Analysis
Technical Summary
The vulnerability in MidnightBSD mport (before 2.7.8) involves improper neutralization of special elements used in OS commands (CWE-78) and race conditions (CWE-367) in privileged package fetch and cache-cleaning operations. Multiple source files handling these operations use race-prone path checks and shell-form command invocation, which allows a local attacker with write access to the package cache or staging path to race path checks and redirect package downloads, cleanup, or install side effects outside the intended cache. This increases the risk of command-line interpretation issues during privileged helper execution. The issue is resolved in version 2.7.8.
Potential Impact
A local attacker with write access to package cache or staging paths can exploit race conditions and shell command invocation to redirect package management operations outside intended directories. This could lead to unauthorized command execution or manipulation of package installation and cleanup processes. The CVSS 4.0 score is 5.8 (medium severity), indicating a moderate impact requiring local privileges and high attack complexity.
Mitigation Recommendations
Upgrade MidnightBSD mport to version 2.7.8 or later, where this vulnerability is fixed. No other mitigation is specified or required as the official fix addresses the issue.
CVE-2026-54575: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MidnightBSD mport
Description
CVE-2026-54575 is an OS command injection vulnerability in MidnightBSD's mport package manager prior to version 2.7.8. The flaw arises from race conditions in path handling during privileged package fetch and cache-cleaning operations, combined with shell-form command invocation. A local attacker with write access to package cache or staging paths could exploit this to redirect package-related operations outside intended directories. This vulnerability is fixed in version 2.7.8.
CVSS v4.0
Score 5.8medium
Affected software
MidnightBSD
mport
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in MidnightBSD mport (before 2.7.8) involves improper neutralization of special elements used in OS commands (CWE-78) and race conditions (CWE-367) in privileged package fetch and cache-cleaning operations. Multiple source files handling these operations use race-prone path checks and shell-form command invocation, which allows a local attacker with write access to the package cache or staging path to race path checks and redirect package downloads, cleanup, or install side effects outside the intended cache. This increases the risk of command-line interpretation issues during privileged helper execution. The issue is resolved in version 2.7.8.
Potential Impact
A local attacker with write access to package cache or staging paths can exploit race conditions and shell command invocation to redirect package management operations outside intended directories. This could lead to unauthorized command execution or manipulation of package installation and cleanup processes. The CVSS 4.0 score is 5.8 (medium severity), indicating a moderate impact requiring local privileges and high attack complexity.
Mitigation Recommendations
Upgrade MidnightBSD mport to version 2.7.8 or later, where this vulnerability is fixed. No other mitigation is specified or required as the official fix addresses the issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T19:15:27.343Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac1d2055bf5e2cf5a696d1
Added to database: 09/17/2026, 17:02:24 UTC
Last enriched: 09/17/2026, 17:17:06 UTC
Last updated: 09/17/2026, 18:55:35 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.