CVE-2026-107818
Received Received - Intake

MariaDB Service Privilege Escalation via Environment Injection

Vulnerability report for CVE-2026-107818, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-09

Last updated on: 2026-10-09

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-09
Last Modified
2026-10-09
Generated
2026-10-09
AI Q&A
2026-10-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
MariaDB server >= 10.6.1, < 10.6.28
MariaDB server >= 10.11.1, < 10.11.19
MariaDB server >= 11.4.1, < 11.4.13
MariaDB server >= 11.8.1, < 11.8.9
MariaDB server >= 12.3.1, < 12.3.3
MariaDB server >= 13.0.1, < 13.0.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-15 One or more system settings or configuration elements can be externally controlled by a user.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

MariaDB server versions between 10.6.1 and 10.6.28, 10.11.1 until 10.11.19, 11.4.1 until 11.4.13, 11.8.1 until 11.8.9, 12.3.0 until 12.3.3, and 13.0.0 until 13.0.2 have a flaw where the mariadb.service unit uses /run/mysqld/wsrep-new-cluster during restart. A user with FILE privilege and write access to /run/mysqld can create this file and inject malicious environment variables into the restarted service.

This allows privilege escalation or arbitrary code execution due to improper handling of environment variables during service restart.

Detection Guidance

Check MariaDB version with 'mysql --version' or 'mariadb --version'. If running versions between 10.6.1-10.6.27, 10.11.1-10.11.18, 11.4.1-11.4.12, 11.8.1-11.8.8, 12.3.1-12.3.2, or 13.0.1, the system is vulnerable. Inspect /run/mysqld/ for unexpected wsrep-new-cluster files.

Impact Analysis

An attacker with FILE privilege and access to /run/mysqld could exploit this to gain higher privileges or execute arbitrary commands on the system by manipulating the MariaDB service restart process.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating confidentiality requirements in GDPR and HIPAA. Organizations using affected MariaDB versions may face compliance violations and potential fines.

Mitigation Strategies

Upgrade MariaDB to patched versions (10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, or 13.0.2) immediately. Remove FILE privilege from untrusted users and restrict secure-file-priv to safe directories. Monitor /run/mysqld/ for unauthorized files.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-107818. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart