CVE-2026-85746Mariadb
Buffer Overflow in MariaDB ST_AsText with Nested GeometryCollections
Critical 9.9
Follow: this CVE · Mariadb · Mariadb We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 9.9
- EPSS
- —
- Auth required
- Yes
- Published
- Oct 16, 2026
- Updated
- Oct 20, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
MariaDB is vulnerable to a buffer overflow in the ST_AsText function when processing deeply nested GeometryCollections. An authenticated attacker can submit a specially crafted GIS object to corrupt memory and potentially achieve code execution. The recursive WKT serialization does not properly account for consumed bytes or reserve sufficient space.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2
Update MariaDB to the patched version for your branch: 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, or 13.0.2.
- Apply the vendor's security update for Mariadb.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mariadb | mariadb | ≥ 10.6.1 < 10.6.28 |
| mariadb | mariadb | ≥ 10.11.1 < 10.11.19 |
| mariadb | mariadb | ≥ 11.4.1 < 11.4.13 |
| mariadb | mariadb | ≥ 11.8.1 < 11.8.9 |
| mariadb | mariadb | ≥ 12.3.1 < 12.3.3 |
| mariadb | mariadb | 13.0.1 |
Official advisories
- Red Hat Security Advisory: mariadb:10.11 security update · Red Hat · RHSA-2026:104760 · Dec 1, 2026 High
- Red Hat Security Advisory: mariadb:10.11 security update · Red Hat · RHSA-2026:104723 · Dec 1, 2026 High
- Red Hat Security Advisory: mariadb11.8 security update · Red Hat · RHSA-2026:104719 · Dec 1, 2026 High
- Security update for mariadb · SUSE · SUSE-SU-2026:5499-1 · Nov 27, 2026 Critical
- libmariadbd-devel-12.3.2-3.1 on GA media · SUSE · openSUSE-SU-2026:12245-1 · Oct 23, 2026 Critical
Also: Red Hat (+6)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Vendor Advisory
- jira.mariadb.org Issue Tracking