MariaDB: Out-of-bound buffer write on in `ST_AsText` of nested GeometryCollections
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.
- Products
- mariadb
- Affected versions
- Not specified
- Fixed versions
- 10.11.19, 10.6.28, 11.4.13, 11.8.9, 12.3.3, 13.0.2
- CVEs
- CVE-2026-85746
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 17:58 UTC · Revision 1
Source evidence
MariaDB: Out-of-bound buffer write on in `ST_AsText` of nested GeometryCollections
core-osv · Original sourcePublished 21 Oct 2026, 08:52 UTC
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.
osv:BIT-mariadb-2026-85746
mariadb
Fixed versions: 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2
Complete source record
{
"id": "252fb446a887f501174d845455f6bcdc8e46bbc52165af24f598ebcdbae41e3b",
"url": "https://osv.dev/vulnerability/BIT-mariadb-2026-85746",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MariaDB: Out-of-bound buffer write on in `ST_AsText` of nested GeometryCollections",
"summary": "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.",
"evidence": "osv:BIT-mariadb-2026-85746",
"products": [
{
"name": {
"value": "mariadb",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "10.6.28",
"evidence": "/affected/0/ranges"
},
{
"value": "10.11.19",
"evidence": "/affected/0/ranges"
},
{
"value": "11.4.13",
"evidence": "/affected/0/ranges"
},
{
"value": "11.8.9",
"evidence": "/affected/0/ranges"
},
{
"value": "12.3.3",
"evidence": "/affected/0/ranges"
},
{
"value": "13.0.2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "BIT-mariadb-2026-85746",
"aliases": [
"BIT-mariadb-2026-85746",
"BIT-mariadb-min-2026-85746",
"BIT-mysql-client-2026-85746",
"CVE-2026-85746",
"GHSA-8fvj-c57c-pggx"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "10.6.1"
},
{
"fixed": "10.6.28"
},
{
"introduced": "10.11.0"
},
{
"fixed": "10.11.19"
},
{
"introduced": "11.4.0"
},
{
"fixed": "11.4.13"
},
{
"introduced": "11.8.0"
},
{
"fixed": "11.8.9"
},
{
"introduced": "12.3.0"
},
{
"fixed": "12.3.3"
},
{
"introduced": "13.0.0"
},
{
"fixed": "13.0.2"
}
]
}
],
"package": {
"name": "mariadb",
"purl": "pkg:bitnami/mariadb",
"ecosystem": "Bitnami"
},
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
}
],
"database_specific": {
"source": "https://github.com/bitnami/vulndb/tree/main/data/mariadb/BIT-mariadb-2026-85746.json"
}
}
],
"modified": "2026-10-22T09:00:02.442825194Z",
"provider": "osv",
"references": [
"https://github.com/MariaDB/server/commit/5c04ca5524385356ff7cf84974a7d491974c1f85",
"https://github.com/MariaDB/server/releases/tag/mariadb-10.11.19",
"https://github.com/MariaDB/server/releases/tag/mariadb-10.6.28",
"https://github.com/MariaDB/server/releases/tag/mariadb-11.4.13",
"https://github.com/MariaDB/server/releases/tag/mariadb-11.8.9",
"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3",
"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2",
"https://github.com/MariaDB/server/security/advisories/GHSA-8fvj-c57c-pggx",
"https://jira.mariadb.org/browse/MDEV-40329",
"https://nvd.nist.gov/vuln/detail/CVE-2026-85746"
],
"provider_metadata": {
"cpes": [
"cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*"
],
"severity": "Critical"
}
},
"related_cves": [
{
"value": "CVE-2026-85746",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 405330,
"published_at": "2026-10-21T08:52:55.588+00:00"
}