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
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2026-85746 | 9.9 Critical | 2026-10-16 | Out-of-bounds write | No |
| 2 | CVE-2026-85748 | 9.9 Critical | 2026-10-16 | Use after free | No |
| 3 | CVE-2026-92262 | 9.9 Critical | 2026-10-16 | Remote code execution | No |
| 4 | CVE-2026-32710 | 9.9 Critical | 2026-03-20 | Heap buffer overflow | No |
| 5 | CVE-2026-44170 | 9.8 Critical | 2026-06-12 | OS command injection | No |
| 6 | CVE-2026-49261 | 9.8 Critical | 2026-06-11 | OS command injection | No |
| 7 | CVE-2023-26785 | 9.8 Critical | 2024-10-17 | Code injection | No |
| 8 | CVE-2016-9843 | 9.8 Critical | 2017-05-23 | Critical security flaw | No |
| 9 | CVE-2016-6662 | 9.8 Critical | 2016-09-20 | Permissions and privileges | No |
| 10 | CVE-2026-44172 | 9.1 Critical | 2026-06-12 | SQL injection | No |
Each MariaDB CVE explained
1. CVE-2026-85746: Out-of-bounds write
- 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)
2. CVE-2026-85748: Use after free
- 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)
3. CVE-2026-92262: Remote code execution
- 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)
4. CVE-2026-32710: Heap buffer overflow
- 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)
5. CVE-2026-44170: OS command injection
- 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.
6. CVE-2026-49261: OS command injection
- 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)
7. CVE-2023-26785: Code injection
- 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.
8. CVE-2016-9843: Critical security flaw
- 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.
9. CVE-2016-6662: Permissions and privileges
- 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)
10. CVE-2026-44172: SQL injection
- 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).
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.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| MariaDB 13.0 | Sep 15, 2026 | Dec 31, 2026 | 13.0.2 | Supported |
| MariaDB 12.3 (LTS) | May 28, 2026 | Jun 12, 2029 | 12.3.3 | Supported |
| MariaDB 12.2 | Feb 13, 2026 | May 28, 2026 | 12.2.2 | End of life |
| MariaDB 12.1 | Nov 18, 2025 | Feb 13, 2026 | 12.1.2 | End of life |
| MariaDB 12.0 | Aug 7, 2025 | Nov 18, 2025 | 12.0.2 | End of life |
| MariaDB 11.8 (LTS) | Jun 4, 2025 | Jun 4, 2028 | 11.8.9 | Supported |
| MariaDB 11.7 | Feb 12, 2025 | May 12, 2025 | 11.7.2 | End of life |
| MariaDB 11.6 | Nov 13, 2024 | Feb 13, 2025 | 11.6.2 | End 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
- Never expose the database port to the internet; allow only the application servers.
- Use strong, unique credentials and least-privilege accounts for each application.
- Apply minor and security releases on a regular cadence, after testing.
- Encrypt connections with TLS and encrypt backups.
- Restrict or remove admin tools you do not need.
- 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.
Related security guides
Few stacks run MariaDB alone. These guides cover the technologies it is most often deployed with.
- MySQL vulnerabilities: MySQL is the world's most widely used open-source relational database.
- PHP vulnerabilities: PHP is the server-side language behind WordPress and most of the web.
- WordPress vulnerabilities: WordPress is the world's most used content management system.
- phpMyAdmin vulnerabilities: phpMyAdmin is a web interface for managing MySQL and MariaDB databases.
- Apache Cassandra vulnerabilities: Apache Cassandra is a distributed NoSQL database built for scale and availability.
- CouchDB vulnerabilities: Apache CouchDB is a document-oriented NoSQL database with an HTTP API.
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
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: MariaDB (opens in a new tab), release and support dates, checked Nov 3, 2026.
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.