← Back to Patch Radar
PATCH RADAR / CVE-2026-85746

CVE-2026-85746: MariaDB ST_AsText buffer overflow — patch affected releases

A low-privileged remote user can trigger an out-of-bounds write via ST_AsText on deeply nested GeometryCollections in MariaDB. Check your server version and upgrade.

Critical · CVSS 3.1 · 9.9 · CVE disclosed
Published by phil.on on

Affected products

  • MariaDB Server 10.6.x from 10.6.1 up to (excluding) 10.6.28 — affected, CVSS 9.9
  • MariaDB Server 10.11.x from 10.11.1 up to (excluding) 10.11.19 — affected, CVSS 9.9
  • MariaDB Server 11.4.x from 11.4.1 up to (excluding) 11.4.13 — affected, CVSS 9.9
  • MariaDB Server 11.8.x from 11.8.1 up to (excluding) 11.8.9 — affected, CVSS 9.9
  • MariaDB Server 12.3.x from 12.3.1 up to (excluding) 12.3.3 — affected, CVSS 9.9
  • MariaDB Server 13.0.x from 13.0.1 up to (excluding) 13.0.2 — affected, CVSS 9.9
  • Fixed in: 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2

CVSS 3.1: 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H). Ranges reflect the vendor's published affected and fixed versions.

  • MariaDB server ↗
    MariaDB / server: >= 10.6.1, < 10.6.28 | affected; >= 10.11.1, < 10.11.19 | affected; >= 11.4.1, < 11.4.13 | affected; >= 11.8.1, < 11.8.9 | affected; >= 12.3.1, < 12.3.3 | affected; >= 13.0.1, < 13.0.2 | affected

Why it matters

MariaDB's ST_AsText function can write past the end of an allocated output buffer when converting deeply nested GeometryCollections, because the recursive WKT serialization does not properly track bytes written or reserve enough space. A remote user with low privileges who can submit a crafted GIS object can corrupt server memory. The vendor notes that code execution may be possible when this is combined with another vulnerability.

Checks and remediation

What to check

  1. Determine the installed MariaDB Server version on every database host:
    • mariadb --version or mysqld --version
    • SELECT VERSION(); from an authenticated session
  2. Compare against the affected ranges: 10.6.1–10.6.27, 10.11.1–10.11.18, 11.4.1–11.4.12, 11.8.1–11.8.8, 12.3.1–12.3.2, and 13.0.1. Any match means the host is affected.
  3. Inventory container images, package-managed installs, embedded appliance databases and replicas, not just primary servers.
  4. Review which accounts can create or insert GIS data and call ST_AsText, and treat that as your exposure boundary.

Remediation steps

  1. Self-managed Ubuntu/Linux hosts: upgrade the MariaDB packages to the fixed release for your series (10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3 or 13.0.2) through your normal package manager or vendor repository, then restart the server. You are responsible for patching these hosts; the MariaDB project does not patch customer-managed installations.
  2. Containers and self-hosted orchestration: rebuild or pull updated MariaDB images tagged at or above the fixed versions, redeploy, and confirm the running image digest.
  3. AWS: for self-managed MariaDB on EC2, upgrade using the distribution packages as above. For managed database offerings, check the provider's bulletin for a fixed engine version and schedule the upgrade through the console or API; the provider applies managed-engine patches.
  4. GCP: for self-managed MariaDB on Compute Engine, upgrade packages as above. For managed database services, confirm availability of a fixed version with the provider and apply the maintenance update in line with its guidance.
  5. Replicas, read replicas and clustered nodes must be upgraded alongside primaries to avoid leaving an exposed node in place.
  6. If an immediate upgrade is not possible, restrict network access to the database port to trusted clients and review account privileges so that untrusted users cannot submit GIS objects. These are reversible reductions in exposure, not fixes.
  7. Verify after remediation:
    • Re-run SELECT VERSION(); on every node and confirm it reports a fixed version.
    • Confirm services restarted cleanly and replication health is normal.
    • Check the vendor security advisory for any further guidance or later fixed releases.

Patch status

Patch status unconfirmed.

Workarounds

Workaround not documented.

CVSS and CWE

CVSS 3.1 · 9.9 · GitHub_M ↗
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Additional CVSS assessments by source and scope

References

SHARE THIS NOTE