CVE-2026-107818·MariaDB vulnerability
MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, the mariadb.service unit used /run/mysqld/wsrep-new-cluster during the next service restart. A database user with FILE privilege and a secure-file-priv configuration permitting writes to /run/mysqld could create that file and inject attacker-controlled environment values into the restarted service. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
- Severity
- high
- Software
- MariaDB
- Fixed in
- 13.0.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.34% — higher than 26% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-107818 scores 8.4 on CVSS, so a successful attack would be serious — but at 0.34%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 13.0.1
Until: 13.0.2
Fixed in: 13.0.2
How to fix this CVE
Update MariaDB to version 1:11.8.9+ds-1 or later to patch a privilege escalation vulnerability affecting the wsrep cluster initialization process. The vulnerability allows database users with FILE privileges to manipulate service restart behavior by injecting malicious environment values. Ensure your secure-file-priv setting is properly configured and restrict FILE privileges to trusted users only.
sudo dnf update mariadb-serverDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed MariaDB version with: mysql --version or mariadb --version
- Step 2: Query the database version: SELECT VERSION(); and verify it is 1:11.8.9+ds-1 or later
- Step 3: Check secure-file-priv setting: SELECT @@secure_file_priv; and verify /run/mysqld is not writable by database users
- Step 4: List database users with FILE privilege: SELECT User, Host FROM mysql.user WHERE File_priv='Y'; and audit their necessity
- Step 5: Verify no /run/mysqld/wsrep-new-cluster file exists: ls -la /run/mysqld/wsrep* and check file ownership/permissions
FAQ
What is CVE-2026-107818?
This vulnerability allows MariaDB users with FILE privilege to create a specially crafted file in /run/mysqld that gets read during service restart, enabling injection of arbitrary environment variables into the MariaDB service process, potentially leading to privilege escalation or service compromise.
Is CVE-2026-107818 being actively exploited?
No, this CVE is not currently listed in the CISA KEV catalog and no public exploits are available, though the attack requires database-level access and local filesystem manipulation.
What versions of MariaDB are affected by CVE-2026-107818?
Versions from 10.6.1 through 10.6.28 (exclusive), 10.11.19 (exclusive), 11.4.13 (exclusive), 11.8.9 (exclusive), 12.3.3 (exclusive), and 13.0.2 (exclusive) are vulnerable. Fixed versions are 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2 or later.
How do I check if my server is vulnerable to CVE-2026-107818?
Run: mysql -e 'SELECT VERSION();' If the version is below one of the fixed releases listed above AND your secure-file-priv allows writes to /run/mysqld, your server is vulnerable. Additionally check: SELECT @@secure_file_priv;
Does Defensia detect CVE-2026-107818?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If MariaDB is installed on a monitored server, CVE-2026-107818 will appear in your dashboard with remediation steps.
Related MariaDB CVEs
References
- https://github.com/MariaDB/server/commit/e3d62d4e78fd4941cef3f5053e6a50d0b32d740e
- https://github.com/MariaDB/server/releases/tag/mariadb-10.11.19
- https://github.com/MariaDB/server/releases/tag/mariadb-10.6.28
- https://github.com/MariaDB/server/releases/tag/mariadb-11.4.13
- https://github.com/MariaDB/server/releases/tag/mariadb-11.8.9
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-107818. Free for 1 server.
Get started free