server: Out-of-bounds Write
CVE-2026-85746 is a critical-severity out-of-bounds write vulnerability in server from MariaDB, with a CVSS 3.1 base score of 9.9 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected server versions: >= 10.6.1, < 10.6.28; >= 10.11.1, < 10.11.19; >= 11.4.1, < 11.4.13, and others listed below. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.97% chance of exploitation within 30 days, higher than 62% of scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update Mariadb to 10.6.28 or 10.11.19 or 11.4.13 or 11.8.9, whichever matches your release line, or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| MariaDB | server | >= 10.6.1, < 10.6.28; >= 10.11.1, < 10.11.19; >= 11.4.1, < 11.4.13; >= 11.8.1, < 11.8.9; >= 12.3.1, < 12.3.3; >= 13.0.1, < 13.0.2 | Not stated |
| MariaDB | Mariadb | 10.6.1 up to, but not including, 10.6.28; 10.11.1 up to, but not including, 10.11.19; 11.4.1 up to, but not including, 11.4.13; 11.8.1 up to, but not including, 11.8.9; 12.3.1 up to, but not including, 12.3.3; 13.0.1 | 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. Scored by CNA (github.com).
Official 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, 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. A low-privileged remote attacker can submit a specially crafted GIS object to corrupt memory and potentially achieve code execution when combined with another vulnerability. 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
How developers prevent this class of flaw
- Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
- Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega, and the Strsafe.h library from Microsoft. These libraries provide safer versions of overflow-prone string-handling functions.
- Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/MariaDB/server/commit/5c04ca5524385356ff7cf84974a7d491974c1f85
- github.com/MariaDB/server/releases/tag/mariadb-10.11.19Release Notes
- github.com/MariaDB/server/releases/tag/mariadb-10.6.28Release Notes
- github.com/MariaDB/server/releases/tag/mariadb-11.4.13Release Notes
- github.com/MariaDB/server/releases/tag/mariadb-11.8.9Release Notes
- github.com/MariaDB/server/releases/tag/mariadb-12.3.3Release Notes
- github.com/MariaDB/server/releases/tag/mariadb-13.0.2Release Notes
Other references
- jira.mariadb.org/browse/MDEV-40329Issue Tracking
Other vulnerabilities in server
- 8.0 High severity
- 8.8 High severity
- 9.9 Critical severity
- 7.7 High severity
- 9.9 Critical severity
- 7.2 High severity
Recent Out-of-bounds Write vulnerabilities
- 7.5 High severity
- 8.8 High severity
- 7.4 High severity
- 8.4 High severity
- 7.1 High severity
- 9.3 Critical severity
Spotted an error? Tell us.