CVE-2026-144663: MariaDB Server Stack-Based Buffer Overflow in WSREP Key Serialization for BLOB/TEXT Prefixes
MariaDB Server before 10.6.25, 10.7 through 10.11.x before 10.11.16, 11.0 through 11.4.x before 11.4.10, 11.5 through 11.8.x before 11.8.6, and 12.0 through 12.2.x before 12.2.2 contains a stack-based buffer overflow in wsrepstorekeyvalforrow() in storage/innobase/handler/hainnodb.cc. When building Galera write-set certification keys with WSREP protocol version 2 or later, the function advanced the destination pointer past a BLOB, TEXT or GEOMETRY key prefix before copying the prefix bytes, so the copy landed after the space reserved for it and could run past the end of the 3500-byte key buffer on the stack of hainnobase::wsrepappendkeys(). Authenticated users who can insert or update rows in an InnoDB table with a long BLOB, TEXT or GEOMETRY prefix in a key that WSREP serializes (a primary, unique or foreign key, or any key of a table without a primary key) on a Galera cluster node can write up to about 3 KB of data they control past the buffer, crashing the server or corrupting stack memory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
MariaDB Serverto a version that resolves this vulnerability.Fixed in 10.6.25 - Upgrade
Upgrade
MariaDB Serverto a version that resolves this vulnerability.Fixed in 10.11.16 - Upgrade
Upgrade
MariaDB Serverto a version that resolves this vulnerability.Fixed in 11.4.10 - Upgrade
Upgrade
MariaDB Serverto a version that resolves this vulnerability.Fixed in 11.8.6 - Upgrade
Upgrade
MariaDB Serverto a version that resolves this vulnerability.Fixed in 12.2.2
Event History
Frequently Asked Questions
Which deployments are exposed?
Exposure requires a Galera cluster node using WSREP protocol version 2 or later. The affected operation involves InnoDB tables whose serialized keys include a long BLOB, TEXT, or GEOMETRY prefix.
What access does an attacker need?
An attacker must be authenticated and able to insert or update rows in an affected InnoDB table. The relevant key can be a primary, unique, or foreign key, or any key on a table without a primary key.
What can be done before patching is available?
Restrict insert and update access for untrusted authenticated users on InnoDB tables that use BLOB, TEXT, or GEOMETRY key prefixes and are involved in Galera write-set key serialization. This addresses the access required to supply the oversized controlled data.
Which MariaDB Server releases contain fixes?
Fixed releases are 10.6.25, 10.11.16, 11.4.10, 11.8.6, and 12.2.2. Affected ranges include versions before 10.6.25 and the 10.7 through 12.2 release lines before their listed fixed versions.