# CVE-2025-13699: MariaDB mariadb-dump Utility Directory Traversal Remote Code Execution Vulnerability

> Remote attackers can execute arbitrary code via directory traversal in the mariadb-dump utility due to improper path validation.

- **Severity:** High 7.0 (`CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 23 Dec 2025
- **Updated:** 24 Dec 2025
- **Also known as:** ALSA-2026:0137, ALSA-2026:0225, ALSA-2026:0232, ALSA-2026:0233, AZL-73186, AZL-73190, BELL-CVE-2025-13699, CLSA-2026-1768815310, CLSA-2026-1769021453, CLSA-2026-1769162597, DEBIAN-CVE-2025-13699, ECHO-965a-0075-cb52, GHSA-rqf2-8625-4vgv, OESA-2026-1383, OESA-2026-1536, OESA-2026-1537, OESA-2026-1538, RHSA-2026:0061, RHSA-2026:0111, RHSA-2026:0112, RHSA-2026:0137, RHSA-2026:0225, RHSA-2026:0232, RHSA-2026:0233, RHSA-2026:0295, RHSA-2026:0296, RHSA-2026:0304, RHSA-2026:0333, RHSA-2026:0336, RHSA-2026:0344, RHSA-2026:0351, RHSA-2026:0357, RHSA-2026:0367, RHSA-2026:0698, RHSA-2026:8812, RHSA-2026:8813, RLSA-2026:0137, RLSA-2026:0225, RLSA-2026:0232, RLSA-2026:0233, RLSA-2026:0698, ROOT-OS-DEBIAN-11-CVE-2025-13699, SUSE-SU-2025:4438-1, SUSE-SU-2025:4493-1, SUSE-SU-2025:4502-1, SUSE-SU-2025:4520-1, SUSE-SU-2026:20018-1, UBUNTU-CVE-2025-13699, openSUSE-SU-2025:20175-1

## What is CVE-2025-13699?

CVE-2025-13699 is a high-severity path traversal vulnerability in MariaDB, published on 23 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2025-13699?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `Judy` | AlmaLinux:8 | All versions | 1.0.5-18.module_el8.10.0+3794+c6a66d65 |
| `Judy` | AlmaLinux:8 | All versions | 1.0.5-18.module_el8.10.0+3947+ac422511 |
| `Judy` | AlmaLinux:8 | All versions | 1.0.5-18.module_el8.10.0+3955+6534edaf |
| `Judy` | AlmaLinux:8 | All versions | 1.0.5-18.module_el8.6.0+2867+72759d2f |
| `Judy` | AlmaLinux:8 | All versions | 1.0.5-18.module_el8.6.0+3138+72759d2f |
| `Judy` | AlmaLinux:8 | All versions | 1.0.5-18.module_el8.8.0+3620+5d452900 |
| `galera` | AlmaLinux:8 | All versions | 25.3.37-1.module_el8.8.0+3609+204d4ab0 |
| `galera` | AlmaLinux:8 | All versions | 26.4.20-1.module_el8.10.0+3955+6534edaf |
| `galera` | AlmaLinux:8 | All versions | 26.4.22-1.module_el8.10.0+4059+10818090 |
| `mariadb` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-backup` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-backup` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-backup` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-common` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-common` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-common` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-devel` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-devel` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-devel` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-embedded` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-embedded` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-embedded` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-embedded-devel` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-embedded-devel` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-embedded-devel` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-errmsg` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-errmsg` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-errmsg` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-gssapi-server` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-gssapi-server` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-gssapi-server` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-oqgraph-engine` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-oqgraph-engine` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |
| `mariadb-oqgraph-engine` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-pam` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-pam` | AlmaLinux:8 | All versions | 3:10.5.29-3.module_el8.10.0+4094+f90dcfa6 |
| `mariadb-server` | AlmaLinux:8 | All versions | 3:10.11.10-2.module_el8.10.0+4091+e8693c5e |
| `mariadb-server` | AlmaLinux:8 | All versions | 3:10.3.39-2.module_el8.10.0+4093+5130acef |

## How do I fix CVE-2025-13699?

Apply the vendor's patch.

## Is CVE-2025-13699 being exploited?

There is no known exploitation of CVE-2025-13699 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-13699 and fix it if it is affected.

What it is: CVE-2025-13699 is a high-severity path traversal vulnerability in MariaDB, published on 23 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2025-13699 in the wild and no public exploit code.

Affected product: MariaDB. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-13699/ (Markdown: https://insights.sbomify.com/CVE-2025-13699/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-13699
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-13699
- OSV: https://osv.dev/vulnerability/CVE-2025-13699

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-13699/
Summaries are generated and may contain mistakes; the official description above is the record.
