Skip to main content

MariaDB Server CVE-2026-107821

| EUVDEUVD-2026-95921 HIGH
Improper Validation of Specified Index, Position, or Offset in Input (CWE-1285)
2026-10-09 GitHub_M
8.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain write access to data directory
  2. Delivery
    Craft malicious FRM metadata file
  3. Exploit
    Place FRM and trigger table open
  4. Execution
    Out-of-bounds read/write in FRM parser
  5. Impact
    Crash server or execute code in mysqld context

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware permission validation
Exploitation Conditions

The attacker must be able to write a crafted binary FRM (table-definition) file into MariaDB's data directory and then cause the server to open that table, invoking the FRM image parser (init_from_binary_frm_image / create_key_infos). This presupposes filesystem write access to the data directory - typically the OS 'mysql' service account, a host-level compromise, or a database account with FILE/administrative privileges - matching the PR:H rating. Limiting factors that reduce realistic risk: no remote-unauthenticated path despite the AV:N label (file placement is a local operation), high attack complexity in crafting an FRM that reaches the vulnerable code, and the requirement that the poisoned table actually be opened. Affected only in versions 10.6.1 up to the fixed releases; patched installations are not exposed.

Impact

This is a high-CVSS (8.0) memory-safety flaw (CWE-1285, improper validation of counts/offsets/lengths/field boundaries) in MariaDB's FRM metadata parser (sql/table.cc), but multiple signals point to a lower real-world priority than the score suggests. No EPSS probability, CISA KEV listing, or public POC is present in the provided data, so exploitation status is 'no public exploit identified at time of analysis.' The most important signal is a vector/description tension: the input vector is CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C, yet the description states the attacker must 'place a crafted FRM file in the data directory,' which is fundamentally a local filesystem operation, not a network one - the AV:N rating appears generous and AV:L is more defensible (verify with vendor advisory GHSA-c4gx-34mg-95q5). PR:H is consistent across both readings: an attacker already needs write access to the server's data directory, meaning they are effectively a DBA, the OS 'mysql' user, or an account with FILE-level privileges. AC:H reflects the difficulty of hand-crafting an FRM image that reaches the vulnerable paths. Net assessment: a genuine out-of-bounds read/write with potential code execution, but gated behind high privilege and local file placement, so it is a defense-in-depth / post-compromise privilege-boundary issue rather than an externally-exploitable priority. The absence of EPSS/KEV/POC is consistent with that lower-urgency profile.

Exploit ScenarioDerived

An attacker who already holds write access to the MariaDB data directory (e.g. a low-trust DBA, a compromised 'mysql' OS account, or an account with FILE privileges) crafts a malicious .frm file with inconsistent counts, offsets, and field boundaries and places it where the server stores table metadata. When the server opens that table, the unvalidated FRM parsing in init_from_binary_frm_image/create_key_infos triggers an out-of-bounds read or write, crashing mysqld or potentially executing code in its context. No public exploit code is identified in the provided data.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 09, 2026

Out-of-bounds reads and writes in MariaDB Server's binary FRM (table-definition) parser allow an attacker who can drop a crafted .frm file into the server's data directory and then cause that table to be opened to crash mysqld or potentially execute code in the server process. Affected releases are MariaDB Server from 10.6.1 up to (but not including) 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2. The published CVSS of 8.0 is driven by high confidentiality, integrity and availability impact once the parser is reached, but the independent assessment rates the practical path as local (AV:L/AC:L) with high privileges required (PR:H), since file placement in the data directory is a host/local operation rather than a remote unauthenticated one; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to MariaDB Server 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, or 13.0.2 for the matching series - the fix is upstream commit 3b1c2e58abab5571bec4ff52773ddc75b1738da9 and is documented in GHSA-c4gx-34mg-95q5 and MDEV-40571. Where upgrading immediately is not possible, the primary compensating control is to eliminate the write primitive the flaw depends on: treat the data directory as a secrets-grade path, restrict filesystem write access to the dedicated mysql/mariadb service account only, avoid running mysqld as root, and revoke the FILE privilege and any administrative/database-creation grants from untrusted accounts (side effect: legitimate backup, dump-import and table-copy workflows that rely on FILE or on writing to the data directory will break and must be replaced with service-account-managed jobs). Additionally, audit the data directory for unexpected or modified .frm files, since any FRM that did not originate from normal DDL is the delivery vector; integrity monitoring or checksum baselining of the datadir is useful here, though it adds operational overhead and cannot clean a table that has already been poisoned - a poisoned table must be dropped and the datadir cleaned. Note that because the parser only runs when the table is opened, keeping suspicious tables unopened (quarantining the server, or renaming .frm files for review only while stopped) reduces exposure but is not a reliable substitute for patching.

Affected VersionsENISA

Server 10.11.1, < 10.11.19
Server 12.3.1, < 12.3.3
Server 10.6.1, < 10.6.28
Server 13.0.1, < 13.0.2
Server 11.8.1, < 11.8.9
Server 11.4.1, < 11.4.13

Affected Packages

euvd server_10_11_1 fix: 10.11.19
euvd server_10_6_1 fix: 10.6.28
euvd server_11_4_1 fix: 11.4.13
euvd server_11_8_1 fix: 11.8.9
euvd server_12_3_1 fix: 12.3.3
euvd server_13_0_1 fix: 13.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 6 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-1285 improper-validation-of-specified-quantity issue in MariaDB's handling of the legacy binary FRM metadata format used to store table definitions. The vulnerable code lives in sql/table.cc, primarily in TABLE_SHARE::init_from_binary_frm_image() and the helper create_key_infos(), with related paths in fix_type_pointers() and mysql57_calculate_null_position(). FRM images encode counts, offsets, lengths and field boundaries as raw integers, and the parser trusted those values when computing pointers into the image: before the fix it failed to bound key-part iteration, did not verify that key names were NUL-terminated within the image (string reads could run past frm_image_end via strnmov), did not clamp comment lengths or virtual-column screen positions, and computed forminfo/field pointers without confirming they stayed inside the mapped image. The upstream commit 3b1c2e58abab5571bec4ff52773ddc75b1738da9 adds explicit end pointers (key_part_end, vcol_screen_end, frm_image_end), a max_keyname_len bound with a NUL-termination check, a length-budget decrement for key comments, a forminfo boundary check, and a sanity check that key_parts does not precede keys, converting out-of-bounds accesses into clean parse errors. The CPE cpe:2.3:a:mariadb:server:*:*:*:*:*:*:*:* confirms the whole MariaDB server package is the affected component; the associated tags (Denial Of Service, Server) reflect that a malformed FRM most reliably produces a crash, while memory corruption makes code execution a plausible but harder-to-reach outcome.

Know when MariaDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.0 HIGH
AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

Requires local write access to the data directory to plant the FRM, so AV:L and PR:H; a crafted file triggers the OOB reliably (AC:L) and impact stays within the mysqld process (S:U).

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.7 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Oct 09, 2026 - 19:02 EUVD
CVE Published
Oct 09, 2026 - 17:27 cve.org
HIGH 8.0

DescriptionCVE.org

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, MariaDB insufficiently validated counts, offsets, lengths, and field boundaries in FRM metadata while opening binary FRM files. An attacker able to place a crafted FRM file in the data directory could trigger out-of-bounds reads or writes, crash the server, or potentially execute code. 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.

Technical POC Analysis

Evidence base: GHSA-c4gx-34mg-95q5 (MariaDB/server advisory), CVE description, rating CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

MariaDB Server releases from 10.6.1 through the listed branches contain a high-severity memory-safety flaw in the table-definition parser that can crash the database process or potentially allow code execution when a crafted .frm file is placed in the data directory and opened. The practical exploitation path requires local, high-privileged access (PR:H) rather than remote unauthenticated access, and no public exploit identified at time of analysis; a successful compromise could still affect confidentiality, integrity, and availability of database-hosted business data. Leadership should care because MariaDB often supports critical applications, and no vendor-released patch identified at time of analysis, making control of host and data-directory access the primary risk reduction.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict write access to the MariaDB data directory to the service account and trusted administrators; enforce least privilege and strong authentication on database and host accounts; apply OS-level mandatory access controls (SELinux/AppArmor) and file integrity monitoring; monitor for unexpected .frm files and mysqld crashes; isolate or segment database servers; maintain offline backups and test restores; and avoid opening untrusted table files until a vendor patch is available.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
High
MariaDB is a default database on many Linux and enterprise deployments
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment NEWS Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2016-6662 CRITICAL POC
9.8 Sep 20

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.2

CVE-2012-5613 MEDIUM POC
6.0 Dec 03

MySQL 5.5.19 and possibly other versions, and MariaDB 5.5.28a and possibly other versions, when configured to assign the

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2012-2122 MEDIUM POC
5.1 Jun 26

sql/password.c in Oracle MySQL 5.1.x before 5.1.63, 5.5.x before 5.5.24, and 5.6.x before 5.6.6, and MariaDB 5.1.x befor

CVE-2012-5612 MEDIUM POC
6.5 Dec 03

Heap-based buffer overflow in Oracle MySQL 5.5.19 and other versions through 5.5.28, and MariaDB 5.5.28a and possibly ot

CVE-2012-5611 MEDIUM POC
6.5 Dec 03

Stack-based buffer overflow in the acl_get function in Oracle MySQL 5.5.19 and other versions through 5.5.28, and 5.1.53

CVE-2014-3470 MEDIUM
4.3 Jun 05

The ssl3_send_client_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before

CVE-2016-6664 HIGH POC
7.0 Dec 13

mysqld_safe in Oracle MySQL through 5.5.51, 5.6.x through 5.6.32, and 5.7.x through 5.7.14; MariaDB; Percona Server befo

CVE-2014-0221 MEDIUM
4.3 Jun 05

The dtls1_get_message_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.

CVE-2015-3152 MEDIUM POC
5.9 May 16

Oracle MySQL before 5.7.3, Oracle MySQL Connector/C (aka libmysqlclient) before 6.1.3, and MariaDB before 5.5.44 use the

CVE-2022-0778 HIGH POC
7.5 Mar 15

The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for n

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy