Live threats

All CVEs / Mariadb

CVE-2026-85746Mariadb

Buffer Overflow in MariaDB ST_AsText with Nested GeometryCollections

Critical 9.9

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.

Source text, unmodified. NVD.

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.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Mariadb.

Affected products (CPE)

VendorProductVersions
mariadbmariadb≥ 10.6.1 < 10.6.28
mariadbmariadb≥ 10.11.1 < 10.11.19
mariadbmariadb≥ 11.4.1 < 11.4.13
mariadbmariadb≥ 11.8.1 < 11.8.9
mariadbmariadb≥ 12.3.1 < 12.3.3
mariadbmariadb13.0.1

Official advisories

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.