VulnarioBlogMariaDB vulnerabilities

MariaDB Vulnerabilities: The 10 Most Critical MariaDB Security Bugs (CVEs)

MariaDB vulnerabilities are security flaws in MariaDB that attackers can abuse to steal data, take over a server or interrupt a service. MariaDB is a community-developed fork of MySQL. The National Vulnerability Database (NVD) lists 430 CVEs for MariaDB, 11 of them rated critical, and 27 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

This guide lists the 10 most critical MariaDB security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers MariaDB security basics, the current end-of-life dates and a free way to be told about the next MariaDB CVE as soon as it is published.

Key takeaways

  • No MariaDB CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 11 MariaDB CVEs are rated critical (CVSS v3), and 27 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-85746, published Oct 16, 2026.
  • Supported MariaDB releases today (per endoflife.date): 13.0, 12.3, 11.8. Releases not on the list are past their announced end of life.
  • You can monitor MariaDB for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these MariaDB CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical MariaDB CVEs at a glance

Most critical MariaDB vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2026-857469.9 Critical2026-10-16Out-of-bounds writeNo
2CVE-2026-857489.9 Critical2026-10-16Use after freeNo
3CVE-2026-922629.9 Critical2026-10-16Remote code executionNo
4CVE-2026-327109.9 Critical2026-03-20Heap buffer overflowNo
5CVE-2026-441709.8 Critical2026-06-12OS command injectionNo
6CVE-2026-492619.8 Critical2026-06-11OS command injectionNo
7CVE-2023-267859.8 Critical2024-10-17Code injectionNo
8CVE-2016-98439.8 Critical2017-05-23Critical security flawNo
9CVE-2016-66629.8 Critical2016-09-20Permissions and privilegesNo
10CVE-2026-441729.1 Critical2026-06-12SQL injectionNo

Each MariaDB CVE explained

1. CVE-2026-85746: Out-of-bounds write

  • CVSS 9.9 Critical
  • Published 2026-10-16
  • CWE-787
What NVD says
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, ST_AsText can write beyond an allocated output buffer when converting deeply nested GeometryCollections because recursive WKT serialization does not account for bytes consumed or reserve sufficient space.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
10.6.1 to before 10.6.28; 10.11.1 to before 10.11.19; 11.4.1 to before 11.4.13; 11.8.1 to before 11.8.9
What to do
Upgrade to the fixed release for your branch (10.6.28, 10.11.19, 11.4.13) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-85746 (opens in a new tab)

2. CVE-2026-85748: Use after free

  • CVSS 9.9 Critical
  • Published 2026-10-16
  • CWE-416
What NVD says
MariaDB server is a community developed fork of MySQL server. From 12.3.1 until 12.3.3 and 13.0.2, SYS_REFCURSOR handling is affected because cursor-array reallocation can leave stale references in routine contexts. A low-privileged attacker can open a large number of SYS_REFCURSORs and then fetch one to trigger a use-after-free that can enable remote code execution when combined with another vulnerability.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
12.3.1 to before 12.3.3; 13.0.1
What to do
Upgrade to 12.3.3 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-85748 (opens in a new tab)

3. CVE-2026-92262: Remote code execution

  • CVSS 9.9 Critical
  • Published 2026-10-16
  • CWE-706
What NVD says
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 #mysql50# bypass prefix is affected because it allows the #mysql50# prefix to bypass normal table-name filesystem encoding.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
10.6.1 to before 10.6.28; 10.11.1 to before 10.11.19; 11.4.1 to before 11.4.13; 11.8.1 to before 11.8.9
What to do
Upgrade to the fixed release for your branch (10.6.28, 10.11.19, 11.4.13) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-92262 (opens in a new tab)

4. CVE-2026-32710: Heap buffer overflow

  • CVSS 9.9 Critical
  • Published 2026-03-20
  • CWE-122
What NVD says
MariaDB server is a community developed fork of MySQL server. An authenticated user can crash MariaDB versions 11.4 before 11.4.10 and 11.8 before 11.8.6 via a bug in JSON_SCHEMA_VALID() function. Under certain conditions it might be possible to turn the crash into a remote code execution. These conditions require tight control over memory layout which is generally only attainable in a lab environment.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
11.4.1 to before 11.4.10; 11.8.1 to before 11.8.6; 12.1.2
What to do
Upgrade to the fixed release for your branch (11.4.10, 11.8.6) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-32710 (opens in a new tab)

5. CVE-2026-44170: OS command injection

  • CVSS 9.8 Critical
  • Published 2026-06-12
  • CWE-78
What NVD says
MariaDB server is a community developed fork of MySQL server. From versions 10.6.1 to before 10.6.26, 10.11.1 to before 10.11.17, 11.4.1 to before 11.4.11, 11.8.1 to before 11.8.7, and 12.3.1, MariaDB on WIndows with installed CONNECT engine and enabled REST support interpolated table HTTP attribute into the curl command line without proper sanitizing. This allows the user to execute shell commands on the server.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
10.6.1 to before 10.6.26; 10.11.1 to before 10.11.17; 11.4.1 to before 11.4.11; 11.8.1 to before 11.8.7
What to do
Upgrade to the fixed release for your branch (10.6.26, 10.11.17, 11.4.11) or a later one, then restart the service.

NVD record for CVE-2026-44170 (opens in a new tab)

6. CVE-2026-49261: OS command injection

  • CVSS 9.8 Critical
  • Published 2026-06-11
  • CWE-78
What NVD says
MariaDB server is a community developed fork of MySQL server. Versions 10.6.1 through 10.6.26, 10.11.1 through 10.11.17, 11.4.1 through 11.4.11, 11.8.1 through 11.8.7, and 12.3.1 with `wsrep_notify_cmd` enabled would execute shell commands embedded in the name of the joiner node. This is fixed in 10.6.27, 10.11.18, 11.4.12, 11.8.8, and 12.3.2.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
10.6.1 to before 10.6.27; 10.11.1 to before 10.11.18; 11.4.1 to before 11.4.12; 11.8.1 to before 11.8.8
What to do
Upgrade to the fixed release for your branch (10.6.27, 10.11.18, 11.4.12) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-49261 (opens in a new tab)

7. CVE-2023-26785: Code injection

  • CVSS 9.8 Critical
  • Published 2024-10-17
  • CWE-94
What NVD says
MariaDB v10.5 was discovered to contain a remote code execution (RCE) vulnerability via UDF Code in a Shared Object File, followed by a "create function" statement. NOTE: this is disputed by the MariaDB Foundation because no privilege boundary is crossed.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
10.5.0
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2023-26785 (opens in a new tab)

8. CVE-2016-9843: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2017-05-23
What NVD says
The crc32_big function in crc32.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact via vectors involving big-endian CRC calculation.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.5.0 to before 5.5.62; 10.0.0 to before 10.0.37; 10.1.0 to before 10.1.37; 10.2.0 to before 10.2.19
What to do
Upgrade to the fixed release for your branch (5.5.62, 10.0.37, 10.1.37) or a later one, then restart the service.

NVD record for CVE-2016-9843 (opens in a new tab)

9. CVE-2016-6662: Permissions and privileges

  • CVSS 9.8 Critical
  • Published 2016-09-20
  • CWE-264
What NVD says
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.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.5.20 to before 5.5.51; 10.0.0 to before 10.0.27; 10.1.0 to before 10.1.17
What to do
Upgrade to the fixed release for your branch (5.5.51, 10.0.27, 10.1.17) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2016-6662 (opens in a new tab)

10. CVE-2026-44172: SQL injection

  • CVSS 9.1 Critical
  • Published 2026-06-12
  • CWE-89
What NVD says
MariaDB server is a community developed fork of MySQL server. In versions 3.3.18 and 3.4.8, an application that was taking non-validated user input, escaping it with mysql_real_escape_string() and sending it to the database using text protocol and big5 character set was vulnerable to SQL injections, even though mysql_real_escape_string() was supposed to prevent them.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality and integrity.
Affected versions
3.3.18; 3.4.8
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2026-44172 (opens in a new tab)

MariaDB end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid MariaDB vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported MariaDB releases are 13.0, 12.3, 11.8.

MariaDB release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
MariaDB 13.0Sep 15, 2026Dec 31, 202613.0.2Supported
MariaDB 12.3 (LTS)May 28, 2026Jun 12, 202912.3.3Supported
MariaDB 12.2Feb 13, 2026May 28, 202612.2.2End of life
MariaDB 12.1Nov 18, 2025Feb 13, 202612.1.2End of life
MariaDB 12.0Aug 7, 2025Nov 18, 202512.0.2End of life
MariaDB 11.8 (LTS)Jun 4, 2025Jun 4, 202811.8.9Supported
MariaDB 11.7Feb 12, 2025May 12, 202511.7.2End of life
MariaDB 11.6Nov 13, 2024Feb 13, 202511.6.2End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your MariaDB is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

mariadb --version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

MariaDB security checklist

  1. Never expose the database port to the internet; allow only the application servers.
  2. Use strong, unique credentials and least-privilege accounts for each application.
  3. Apply minor and security releases on a regular cadence, after testing.
  4. Encrypt connections with TLS and encrypt backups.
  5. Restrict or remove admin tools you do not need.
  6. Test restoring from backup, not only creating backups.

Where you run MariaDB matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating MariaDB: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than MariaDB. A flaw anywhere in the chain can be the way in, so also review our guides to MySQL vulnerabilities, PHP vulnerabilities and WordPress vulnerabilities.

How to get alerted about new MariaDB vulnerabilities

NVD received 27 new MariaDB CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose MariaDB and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run MariaDB alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about MariaDB vulnerabilities

What are the most critical MariaDB vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical MariaDB CVEs include CVE-2026-85746 (CVSS 9.9), CVE-2026-85748 (CVSS 9.9), CVE-2026-92262 (CVSS 9.9). The guide above ranks the 10 most critical with affected versions and fixes.

Have MariaDB vulnerabilities been exploited in real attacks?

For the MariaDB product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep MariaDB patched.

How many vulnerabilities does MariaDB have?

As of Nov 3, 2026 the National Vulnerability Database lists 430 CVEs for MariaDB, with 11 rated critical by CVSS v3. 27 were published in the previous twelve months.

Which MariaDB versions are still supported?

As of Nov 3, 2026, endoflife.date lists these MariaDB releases as supported: 13.0, 12.3, 11.8. Releases that are not listed are past their announced end of life.

How do I check which MariaDB version I run?

Run mariadb --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new MariaDB CVE is published?

Add MariaDB to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose MariaDB and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is MariaDB secure?

MariaDB is as secure as its patch level. NVD published 27 new MariaDB CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2026-85746?

CVE-2026-85746 is a critical MariaDB vulnerability with a CVSS score of 9.9, published Oct 16, 2026. MariaDB server is a community developed fork of MySQL server.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.