CVE-2025-13699: 
MariaDB Server vulnerability analysis and mitigation

Overview

CVE-2025-13699 is a directory traversal vulnerability in the MariaDB mariadb-dump utility that allows remote attackers to execute arbitrary code on affected installations. The flaw was reported to MariaDB on 2025-08-21 and publicly disclosed on 2025-11-27 by the Zero Day Initiative (ZDI) as advisory ZDI-25-1025 (originally tracked as ZDI-CAN-27000). It was assigned a CVSS v3.0 base score of 7.0 (High), with affected products including MariaDB versions up to at least 10.6.21 and 10.11.11 as identified in Microsoft's Azure Linux distributions (ZDI Advisory, MSRC).

Technical details

The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory — Path Traversal). The root cause lies in the mariadb-dump utility's failure to properly validate user-supplied view names before using them in file system operations, allowing an attacker-controlled path to traverse outside the intended directory. Exploitation requires local access and user interaction (e.g., a user running mariadb-dump against a malicious database containing crafted view names), but attack vectors may vary depending on how the utility is integrated into broader workflows. The vulnerability was discovered by researcher Litezeraw and tracked in MariaDB's issue tracker as MDEV-37483 (ZDI Advisory).

Impact

Successful exploitation allows an attacker to execute arbitrary code in the context of the user running the mariadb-dump utility, resulting in high confidentiality, integrity, and availability impact on the affected system. An attacker who controls a MariaDB database with maliciously crafted view names could cause the dump utility to write files to arbitrary locations on the file system, potentially overwriting sensitive files or planting malicious executables. While the scope is unchanged (no privilege escalation beyond the current user context), the combination of arbitrary file write and code execution could facilitate lateral movement if the affected user has elevated privileges (ZDI Advisory, MSRC).

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation as of the time of this report. The EPSS score is approximately 0.00124 (very low probability of exploitation in the near term). The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity, local access, and user interaction, which significantly limits opportunistic exploitation (ZDI Advisory).

Exploitation steps

  1. Setup malicious database: The attacker creates or controls a MariaDB database instance containing a view with a crafted name that includes path traversal sequences (e.g., ../../etc/cron.d/malicious).
  2. Induce target to run mariadb-dump: The attacker social-engineers or otherwise causes a privileged user to run mariadb-dump against the attacker-controlled database (e.g., as part of a backup script or administrative task).
  3. Trigger path traversal: When mariadb-dump processes the view name, it fails to sanitize the path, causing it to write dump output or related file content to an attacker-specified location outside the intended directory.
  4. Achieve code execution: By writing a malicious file to a location that will be executed by the system (e.g., a cron job, shell profile, or startup script), the attacker achieves code execution in the context of the user running mariadb-dump (ZDI Advisory).

Indicators of compromise

  • File System: Unexpected files written outside the intended dump output directory, particularly in sensitive locations such as /etc/cron.d/, ~/.bashrc, /etc/profile.d/, or web-accessible directories; new or modified files with timestamps correlating to mariadb-dump execution.
  • Logs: Database audit logs or general query logs showing creation of views with names containing path traversal sequences (e.g., ../, ..\); mariadb-dump process logs referencing unexpected file paths.
  • Process: Unexpected processes spawned by the user account that ran mariadb-dump shortly after its execution; scheduled task or cron job modifications coinciding with dump operations.

Mitigation and workarounds

MariaDB has issued a patch addressing this vulnerability, tracked as MDEV-37483. Users should update to a fixed version of MariaDB as soon as available for their distribution. Multiple Linux distributions have released updated packages, including Red Hat (RHSA-2026:0061 and subsequent advisories), SUSE (SUSE-2025-4493), AlmaLinux (ALSA-2026-0232, ALSA-2026-0247), and Oracle Linux. As a workaround, avoid running mariadb-dump against untrusted or externally controlled databases, and restrict which users can create views in databases that are subject to dump operations (ZDI Advisory, MSRC).

Community reactions

The vulnerability was responsibly disclosed by ZDI researcher Litezeraw following a coordinated disclosure process with MariaDB, with the advisory published on 2025-11-27. Multiple Linux distribution security teams (Red Hat, SUSE, AlmaLinux, Oracle, Fedora, Debian) have issued security advisories and updated packages, indicating broad industry awareness and response. No notable public controversy or significant social media discussion has been identified beyond standard security advisory coverage (ZDI Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

mariadb: 1:10.11.18-0+deb12u1

Fixed

sid

mariadb: 1:11.8.5-1

Fixed

trixie

mariadb: 11.8.6-0+deb13u1

Fixed

Ubuntu

Unknown

bionic (esm-apps)

mariadb-10.1

Unknown

devel

mariadb

Not Affected

focal (esm-apps)

mariadb-10.3

Unknown

jammy

mariadb-10.6

Unknown

jammy (esm-apps)

mariadb-10.6

Unknown

noble

mariadb

Unknown

noble (esm-apps)

mariadb

Unknown

resolute

mariadb

Not Affected

RHEL / CentOS

Fixed

RHEL 8

:appstream:mariadb-0:10.3-8100020251202130458.489197e6.src

Fixed

RHEL 9

:appstream:mariadb-3:10.5.22-1.el9_0.1.src

Fixed

RHEL 10

mariadb10.11-3:10.11.15-1.el10_0.src

Fixed

Source: This report was generated using AI

Related MariaDB Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-92262CRITICAL9.9
  • MariaDB Server logoMariaDB Server
  • mariadb
NoYesOct 16, 2026
CVE-2026-85748CRITICAL9.9
  • MariaDB Server logoMariaDB Server
  • mariadb-10.0
NoYesOct 16, 2026
CVE-2026-97380HIGH8.8
  • MariaDB Server logoMariaDB Server
  • mariadb-common
NoYesOct 16, 2026
CVE-2026-86047HIGH7.7
  • MariaDB Server logoMariaDB Server
  • mariadb11.8-client-utils
NoYesOct 16, 2026
CVE-2026-85985MEDIUM5.4
  • MariaDB Server logoMariaDB Server
  • mariadb:11.8::mariadb-server-utils
NoYesOct 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management