Skip to main content

MariaDB CVE-2025-13699

HIGH
Path Traversal (CWE-22)
2025-12-23 zdi-disclosures@trendmicro.com
7.0
CVSS 3.0 · Vendor: trendmicro
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure victim to dump attacker-controlled DB
  2. Delivery
    Craft malicious view name with traversal
  3. Exploit
    Victim runs mariadb-dump utility
  4. Execution
    Unvalidated path used in file write
  5. Impact
    Execute code as current user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim to run the mariadb-dump client utility against a database whose view names are attacker-controlled - e.g., a malicious or compromised MariaDB server the victim connects to and dumps, or an untrusted database/backup restored locally. The crafted view name must contain path-traversal sequences (CWE-22) that, because the user-supplied path is not validated before use in file operations, cause writes outside the intended directory and lead to code execution. Limiting factors that reduce real-world risk: mandatory user interaction (UI:R - the admin must actively invoke mariadb-dump against attacker-influenced data), high attack complexity (AC:H), a local attack vector (AV:L), and resulting code execution only at the privilege level of the user running the dump (no privilege escalation, S:U).

Impact

Signals point to a moderate, not urgent, priority. The CVSS 3.0 base score of 7.0 (HIGH) is driven by full C:H/I:H/A:H impact (code execution), but the exploitability metrics heavily constrain real-world risk: AV:L (local), AC:H (high complexity), and UI:R (requires a victim to run the utility). EPSS is low at 0.52% (43rd percentile), consistent with the lack of public exploit code and the absence of a CISA KEV listing - there is no public exploit identified at time of analysis and no evidence of active exploitation. These signals are internally consistent (low EPSS, no KEV, no POC, high complexity all agree this is not mass-exploitable). One notable conflict must be stated explicitly: the description repeatedly says 'remote attackers,' yet the CVSS vector is AV:L (local attack vector) - this reflects that the payload originates from an attacker-controlled/remote database but is triggered only when a local user runs mariadb-dump; defenders should treat it as a local/user-interaction bug, not a remotely reachable network service flaw, and verify intent with the vendor. Net: a legitimate HIGH-impact vulnerability worth patching in normal cycles, but it depends on social-engineering-style user interaction and does not warrant emergency response absent new exploitation signals.

Exploit ScenarioDerived

An attacker stands up a malicious MariaDB server or seeds a database (or a dump/backup) with a view whose name embeds path-traversal sequences. When a victim administrator runs the mariadb-dump client utility against that attacker-influenced database, the unvalidated view name is used in file operations, writing content outside the intended location and achieving code execution in the context of the user running the dump. No public proof-of-concept is currently identified, and the high attack complexity (AC:H) plus required user interaction (UI:R) make opportunistic exploitation unlikely.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 19, 2026

Directory traversal in the mariadb-dump utility (part of MariaDB) allows code execution when the tool is run against a database with attacker-controlled view names. Exploitation requires the victim to invoke mariadb-dump against malicious or untrusted database content - such as a compromised server being dumped or an untrusted backup being restored - and only yields code execution at the dumping user's privilege level. The flaw (CWE-22, ZDI-CAN-27000) is scored CVSS 7.0 with high attack complexity and mandatory user interaction; EPSS is low (0.52%) and there is no KEV listing, with no public exploit identified at time of analysis.

RemediationAI

Check the MariaDB advisory MDEV-37483 (https://jira.mariadb.org/browse/MDEV-37483) for the fixed mariadb-dump versions and upgrade the MariaDB client tooling accordingly; the ZDI advisory at https://www.zerodayinitiative.com/advisories/ZDI-25-1025/ provides vendor-coordinated details. Where upgrading is not immediately possible, treat database content as untrusted input to the dumper: avoid running mariadb-dump against servers or databases you do not control, do not restore or dump untrusted backup archives on production hosts, and run dumps inside a container or under a low-privilege account whose writable paths cannot reach executables or startup locations - noting this limits but does not eliminate the file-write impact. As a defense-in-depth measure, restrict the paths the account invoking mariadb-dump can write to (e.g., a dedicated output directory with no execute permission), accepting the operational trade-off of tighter backup workflows.

Affected ProductsAI

MariaDB server installations shipping the affected mariadb-dump utility, per the vendor advisory MDEV-37483 (https://jira.mariadb.org/browse/MDEV-37483). The utility ships as part of the MariaDB client tooling, so systems using mariadb-dump for logical backups or migrations are the exposure point; the ZDI advisory (https://www.zerodayinitiative.com/advisories/ZDI-25-1025/) documents the reporting details. No CPE strings were supplied in the source data, so exact version cutoffs should be confirmed against the MariaDB JIRA advisory before concluding a given release is or is not affected.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw resides in MariaDB's mariadb-dump client utility, the logical-backup counterpart to mysqldump, which reads schema metadata - including view names - from a server and writes the resulting SQL text to local files. View names are user-supplied metadata that mariadb-dump uses in file operations without validating for path-traversal sequences (CWE-22). Because a view's name can embed directory-traversal components, a crafted name can cause the utility to read or write outside the intended output directory, enabling an attacker who controls database metadata to plant files that subsequently execute in the context of the user running the dump. The CVSS:3.1 vector AV:L/AC:H/PR:N/UI:R reflects that the attacker cannot trigger this directly over the network: the victim must connect to and dump an attacker-influenced database, an inherently local, interaction-driven and complex chain. MariaDB's advisory is tracked as MDEV-37483 and the original report as ZDI-CAN-27000 / ZDI-25-1025.

Know when MariaDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (trendmicro) PRIMARY 7.0 HIGH
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

AV:L and UI:R because a local user must run mariadb-dump; AC:H due to reliance on attacker-controlled DB and crafted view names; PR:N as no auth on the client; C/I/A:H from code execution as the invoking user.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.0 HIGH

Primary rating from Vendor (trendmicro).

CVSS VectorVendor: trendmicro

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

MariaDB mariadb-dump Utility Directory Traversal Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of MariaDB. Interaction with the mariadb-dump utility is required to exploit this vulnerability but attack vectors may vary depending on the implementation.

The specific flaw exists within the handling of view names. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-27000.

Executive ViewAI

Why It Matters

MariaDB's mariadb-dump backup utility contains a directory traversal flaw that could let attacker-controlled database content achieve code execution on the machine performing a dump. The exposure is limited to staff and systems that dump or restore untrusted database content, but those are often privileged backup and DBA workstations with broad access to production data. Leadership should care because a single careless restore or dump of an untrusted source could compromise backup infrastructure credentials and integrity, though no exploitation has been observed and no patch is available.

Business Impact: Medium
Compensating Controls

No vendor patch identified at time of analysis; mitigate by dumping and restoring only trusted database content, validating untrusted backups in an isolated sandbox first, running mariadb-dump with least privilege and never as root, and restricting execution of the utility to authorized backup hosts and personnel.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
High
MariaDB client tooling ships with a widely deployed open-source database
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2016-6662 CRITICAL POC
9.8 Sep 20

Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.2

CVE-2012-5613 MEDIUM POC
6.0 Dec 03

MySQL 5.5.19 and possibly other versions, and MariaDB 5.5.28a and possibly other versions, when configured to assign the

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2012-2122 MEDIUM POC
5.1 Jun 26

sql/password.c in Oracle MySQL 5.1.x before 5.1.63, 5.5.x before 5.5.24, and 5.6.x before 5.6.6, and MariaDB 5.1.x befor

CVE-2012-5612 MEDIUM POC
6.5 Dec 03

Heap-based buffer overflow in Oracle MySQL 5.5.19 and other versions through 5.5.28, and MariaDB 5.5.28a and possibly ot

CVE-2012-5611 MEDIUM POC
6.5 Dec 03

Stack-based buffer overflow in the acl_get function in Oracle MySQL 5.5.19 and other versions through 5.5.28, and 5.1.53

CVE-2014-3470 MEDIUM
4.3 Jun 05

The ssl3_send_client_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before

CVE-2016-6664 HIGH POC
7.0 Dec 13

mysqld_safe in Oracle MySQL through 5.5.51, 5.6.x through 5.6.32, and 5.7.x through 5.7.14; MariaDB; Percona Server befo

CVE-2014-0221 MEDIUM
4.3 Jun 05

The dtls1_get_message_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.

CVE-2015-3152 MEDIUM POC
5.9 May 16

Oracle MySQL before 5.7.3, Oracle MySQL Connector/C (aka libmysqlclient) before 6.1.3, and MariaDB before 5.5.44 use the

CVE-2022-0778 HIGH POC
7.5 Mar 15

The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for n

Vendor StatusVendor

References

Advisories & patches

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy