CVE-2026-44171: MariaDB mbstream Path Traversal Vulnerability – Patches Available
MariaDB's mbstream backup utility contains a path traversal vulnerability that could allow an attacker to write files outside the intended backup directory when unpacking a specially crafted archive. The flaw affects multiple MariaDB versions across the 10.6, 10.11, 11.4, 11.8, and 12.3 release branches. An attacker would need local access and elevated privileges to exploit this, but successful exploitation could result in arbitrary file creation on the system, potentially compromising system integrity or enabling privilege escalation.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.3 MEDIUM · CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-22
- Affected products
- 2 configuration(s)
- Published / Modified
- 2026-06-12 / 2026-06-17
NVD description (verbatim)
MariaDB server is a community developed fork of MySQL server. From versions 10.6.1 to before 10.6.26, 10.11.1 to before 10.11.17, 11.4.1 to before 11.4.11, 11.8.1 to before 11.8.7, and 12.3.1, mbstream did not check for /../ in the path when unpacking the archive. A proper backup can never contain such paths, but a specially crafted archive could have caused mbstream to create files outside of the target-dir path. This issue has been patched in versions 10.6.26, 10.11.17, 11.4.11, 11.8.7, and 12.3.2.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from insufficient path validation in mbstream, the streaming backup component of MariaDB. When unpacking backup archives, the tool fails to detect and reject path traversal sequences (/../) that could redirect file extraction outside the specified target directory. This is a classic CWE-22 path traversal flaw. While legitimate MariaDB backups would never contain such sequences, a crafted archive could exploit this gap to place files in arbitrary locations with the privileges of the user running mbstream. The issue has been remediated in patched versions by implementing proper path validation before file extraction.
Business impact
Organizations relying on MariaDB backups face a risk of unauthorized file placement on database servers if untrusted or compromised backup archives are processed. This could enable attackers to overwrite system files, inject malicious code, or escalate privileges. The impact is most acute in environments where backup files are received from external sources or where backup processes are automated without strict integrity verification. Incident response and forensics teams may face challenges if backup restoration inadvertently implants persistent threats.
Affected systems
Affected MariaDB versions include: 10.6.1 through 10.6.25, 10.11.1 through 10.11.16, 11.4.1 through 11.4.10, 11.8.1 through 11.8.6, and 12.3.1. Patches are available in versions 10.6.26, 10.11.17, 11.4.11, 11.8.7, and 12.3.2. Verify your installed version and apply the corresponding patch release. Systems not using mbstream for backup operations are not affected by this specific issue.
Exploitability
Exploitation requires local system access and high privileges (the ability to run or influence mbstream execution). The attack vector is local, and successful exploitation depends on user interaction—the attacker must provide or trick the system into processing a malicious backup file. The CVSS 3.1 score of 6.3 (MEDIUM) reflects these constraints. While not easily exploitable from the network, the vulnerability is practical for insider threats or post-compromise lateral movement scenarios where an attacker has foothold access and seeks to escalate or persist.
Remediation
Upgrade to the patched versions: 10.6.26 or later, 10.11.17 or later, 11.4.11 or later, 11.8.7 or later, or 12.3.2 or later, depending on your current branch. Additionally, implement integrity verification for backup files (e.g., cryptographic signatures or checksums) before processing, limit who can initiate backup restoration operations, and avoid processing backup archives from untrusted sources. Monitor backup restoration logs for unusual file paths or extraction errors.
Patch guidance
Review your MariaDB version against the affected ranges listed in the source data. Plan upgrades within your maintenance windows, testing patches in non-production environments first. For organizations on extended support branches (10.6 LTS), patches are available in 10.6.26. Organizations on 10.11, 11.4, 11.8, or 12.3 should verify patch availability in their subscription or distribution channel. Upgrade prioritization should reflect your backup frequency and whether external backup files are processed.
Detection guidance
Monitor mbstream execution and backup restoration processes. Log all invocations of mbstream, particularly any that process backup files from external or less-trusted sources. Watch for error messages indicating invalid or suspicious paths during archive extraction. Filesystem auditing tools (e.g., auditd on Linux) can flag unexpected file creation events in system directories during backup operations. Review backup file sources and implement pre-extraction validation steps to reject files with suspicious path components. Security information and event management (SIEM) integration of backup logs can help detect patterns consistent with exploitation attempts.
Why prioritize this
Although the CVSS score is MEDIUM, organizations should prioritize this patch based on their backup architecture. Those frequently restoring external backups, maintaining production MariaDB databases, or operating in compliance-sensitive environments should move this to near-term remediation. The path traversal mechanism is well-understood and patched; the main risk is delayed patching in environments where backup restoration is routine. Conversely, organizations that rarely restore backups or that only process internally-generated, cryptographically verified backup files may defer this to standard quarterly patching cycles.
Risk score, explained
The CVSS 3.1 score of 6.3 (MEDIUM) is justified by the local attack vector, high privilege requirement, and user interaction dependency. However, the impact rating reflects high consequences if exploited (confidentiality, integrity, and availability all affected at the system level). The score does not account for the relative rarity of path traversal exploitation in backup utilities or mitigating factors such as the ease of detecting unusual file placements. Organizations should consider their specific risk context—backup frequency, file sources, and operational controls—when determining internal severity.
Frequently asked questions
Does this vulnerability affect normal backup and restore operations if we only use MariaDB's standard tools and our own backups?
No. The vulnerability requires a specially crafted archive with path traversal sequences. Legitimate MariaDB backups generated by standard tools do not contain such sequences and cannot trigger the flaw. Risk is limited to scenarios where backup files from untrusted sources or external parties are processed, or where backups have been tampered with.
Can this vulnerability be exploited remotely over the network?
No. The attack vector is local, and the attacker needs high privileges (typically the ability to execute mbstream on the database server). Remote exploitation is not possible unless an attacker first gains local system access or tricks an authorized user into running a malicious backup file.
What is the best way to verify our MariaDB backup files are safe before restoration?
Implement cryptographic signature verification for all backup files before processing. Maintain secure, isolated backup storage with access controls. If receiving backups from external sources, establish a trusted chain of custody and validate file integrity using cryptographic hashes. Consider implementing a sandbox or test environment for backup restoration validation before production use.
If we apply the patch, do we need to re-validate or regenerate existing backups?
No. Existing backups created by unpatched versions will remain untouched. However, after patching, the patched mbstream will reject any backup files (whether old or new) that contain suspicious path traversal sequences, preventing exploitation. Regenerating backups after patching is not necessary for security; standard backup and archival practices should dictate that schedule.
This analysis is provided for informational purposes and reflects ground-truth data available as of the publication date. CVSS scores and affected versions are sourced from official vulnerability data and should be verified against vendor advisories before making remediation decisions. Organizations should conduct their own risk assessments based on their specific environment, backup practices, and threat model. This document does not constitute security advice and should be reviewed by qualified security professionals before implementation. Always verify patch availability and compatibility in your distribution or subscription channel before deployment. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2018-25393MEDIUMNavigate CMS 2.8.5 Path Traversal Vulnerability (CVSS 6.5)
- CVE-2018-25421MEDIUMOpen STA Manager 2.3 Path Traversal File Download Vulnerability
- CVE-2019-25734MEDIUMContact Form by WD CSRF & Local File Inclusion Vulnerability
- CVE-2019-25740MEDIUMJoomla com_jsjobs Arbitrary File Deletion Vulnerability
- CVE-2022-50953MEDIUMWordPress admin-word-count-column Plugin Local File Read Vulnerability
- CVE-2024-47263MEDIUMSynology Hyper Backup Path Traversal – Admin Privilege Required
- CVE-2024-47273MEDIUMSynology Hyper Backup Path Traversal Vulnerability (4.3 MEDIUM)
- CVE-2025-24268MEDIUMmacOS Path Traversal Vulnerability – Patch Sequoia 15.4