CVE-2026-85746

MariaDB: Out-of-bound buffer write on in `ST_AsText` of nested GeometryCollections

Published Oct 16, 2026 CVSS 3.1 · 9.9 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an out‑of‑bounds write in the ST_AsText function of MariaDB server caused by recursive serialization of deeply nested GeometryCollections. The function fails to account for bytes already consumed and does not reserve sufficient buffer space, leading to a buffer overflow. An attacker who can submit malicious GIS data to the database can corrupt memory, potentially gaining arbitrary code execution when combined with another vulnerability. This flaw threatens confidentiality, integrity, and availability by allowing memory corruption via a simple database query.

Affected Systems

MariaDB server is affected. Versions 10.6.1 through 10.6.28, 10.11.1 through 10.11.19, 11.4.1 through 11.4.13, 11.8.1 through 11.8.9, 12.3.1 through 12.3.3, and 13.0.1 through 13.0.2 all contain the flaw. Versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2 include the fix.

Risk and Exploitability

The CVSS score of 9.9 indicates a critical severity, and the lack of an EPSS entry means the current exploitation probability is unknown but the flaw remains high risk. The vulnerability is not listed in the CISA KEV catalog. An attacker can exploit the flaw remotely by sending crafted GIS data over a network interface, requiring only low privileges. Because the overflow can lead to arbitrary code execution when combined with another exploit, the risk is severe for exposed database servers. Immediate remediation is essential to prevent potential compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched MariaDB release such as 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, or 13.0.2.
  • If upgrading is not feasible immediately, limit external access to the database and restrict the ability to submit GIS data to trusted users or applications.
  • Apply network segmentation or firewall rules to isolate the database from untrusted networks, reducing the attack surface.

Generated by OpenCVE AI on October 16, 2026 at 18:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mariadb server
Vendors & Products Mariadb server
Type Values Removed Values Added
First Time appeared Mariadb
Mariadb mariadb
CPEs cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
cpe:2.3:a:mariadb:mariadb:13.0.1:*:*:*:*:*:*:*
Vendors & Products Mariadb
Mariadb mariadb
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title MariaDB: Out-of-bound buffer write on in `ST_AsText` of nested GeometryCollections
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 16, 2026, 5:05 PM
Reserved
Sep 4, 2026, 2:50 PM
Status
Analyzed
Published
Oct 16, 2026, 5:17 PM
Modified
Oct 20, 2026, 3:33 PM
Severity
Important
Public date
Oct 16, 2026, 4:27 PM