Skip to main content

CVE-2026-54575: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MidnightBSD mport

0
Medium
VulnerabilityCVE-2026-54575cvecve-2026-54575cwe-78cwe-367
Published: 09/17/2026 (09/17/2026, 16:55:19 UTC)
Source: CVE Database V5
Vendor/Project: MidnightBSD
Product: 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

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Affected software

MidnightBSD

mport

Affected versions
<2.7.8
GitHub Actionsmore threats →ai
midnightbsd/mport
pkg:github/midnightbsd/mport
Affected versions
<2.7.8

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

AILast updated: 09/17/2026, 17:17:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses