CVE-2026-54585: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MidnightBSD mport
mport is the MidnightBSD Package Manager. Prior to 2.7.8, create_sample_file() in libmport/bundle_read_install_pkg.c did not constrain absolute source and destination paths from the sample-file manifest directive to mport->root. A malicious or malformed package manifest could therefore direct privileged sample-file handling to copy or write outside the configured installation root, compromising local filesystem integrity. This issue is fixed in version 2.7.8.
AI Analysis
Technical Summary
The vulnerability in mport's create_sample_file() function (libmport/bundle_read_install_pkg.c) prior to version 2.7.8 allows improper limitation of pathnames, enabling path traversal attacks. Specifically, absolute paths specified in the sample-file manifest directive were not constrained to the mport installation root, allowing privileged operations to write or copy files outside the intended directory. This could lead to local filesystem compromise. The vulnerability is addressed by restricting these paths in version 2.7.8.
Potential Impact
An attacker supplying a malicious or malformed package manifest could exploit this vulnerability to write or copy files outside the configured installation root directory. This could compromise the integrity of the local filesystem, potentially allowing unauthorized file modifications or overwrites. The CVSS 4.0 score of 6 (medium severity) reflects the network attack vector with low attack complexity but requiring user interaction and partial impact on integrity and availability.
Mitigation Recommendations
Upgrade mport to version 2.7.8 or later, where the vulnerability is fixed by properly constraining absolute paths in the sample-file manifest directive to the installation root. No other mitigation is indicated or required.
CVE-2026-54585: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MidnightBSD mport
Description
mport is the MidnightBSD Package Manager. Prior to 2.7.8, create_sample_file() in libmport/bundle_read_install_pkg.c did not constrain absolute source and destination paths from the sample-file manifest directive to mport->root. A malicious or malformed package manifest could therefore direct privileged sample-file handling to copy or write outside the configured installation root, compromising local filesystem integrity. This issue is fixed in version 2.7.8.
CVSS v4.0
Score 6.0medium
Affected software
MidnightBSD
mport
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in mport's create_sample_file() function (libmport/bundle_read_install_pkg.c) prior to version 2.7.8 allows improper limitation of pathnames, enabling path traversal attacks. Specifically, absolute paths specified in the sample-file manifest directive were not constrained to the mport installation root, allowing privileged operations to write or copy files outside the intended directory. This could lead to local filesystem compromise. The vulnerability is addressed by restricting these paths in version 2.7.8.
Potential Impact
An attacker supplying a malicious or malformed package manifest could exploit this vulnerability to write or copy files outside the configured installation root directory. This could compromise the integrity of the local filesystem, potentially allowing unauthorized file modifications or overwrites. The CVSS 4.0 score of 6 (medium severity) reflects the network attack vector with low attack complexity but requiring user interaction and partial impact on integrity and availability.
Mitigation Recommendations
Upgrade mport to version 2.7.8 or later, where the vulnerability is fixed by properly constraining absolute paths in the sample-file manifest directive to the installation root. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T19:15:27.344Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac1d2055bf5e2cf5a696d5
Added to database: 09/17/2026, 17:02:24 UTC
Last enriched: 09/17/2026, 17:16:54 UTC
Last updated: 09/17/2026, 17:32:28 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.