REDHAT-BUG-2554206: High severity MariaDB MariaDB Server vulnerability
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, STAsText 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.6.28 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.11.19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.4.13 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.8.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.3.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 13.0.2
Event History
Frequently Asked Questions
Who can exploit this issue?
A remote attacker with low privileges can exploit it by submitting a specially crafted GIS object. The issue is therefore relevant where low-privileged users can send GIS data to the MariaDB server.
What conditions are required for exploitation?
The attacker needs to trigger ST_AsText processing of a deeply nested GeometryCollection. The malformed object causes recursive WKT serialization to write beyond the allocated output buffer.
Which MariaDB releases contain the fix?
The issue is fixed in MariaDB 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2. Affected release ranges begin with 10.6.1 and extend up to, but do not include, the corresponding fixed release listed for each branch.