Description
MariaDB server is a community developed fork of MySQL server. From 12.3.1 until 12.3.3 and 13.0.2, SYS_REFCURSOR handling is affected because cursor-array reallocation can leave stale references in routine contexts. A low-privileged attacker can open a large number of SYS_REFCURSORs and then fetch one to trigger a use-after-free that can enable remote code execution when combined with another vulnerability. This issue is fixed in versions 12.3.3 and 13.0.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MariaDB | server | >= 12.3.1, < 12.3.3, >= 13.0.1, < 13.0.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mariadb | No fix yet | — |
| Ubuntu 26.04 LTS | mariadb | No fix yet | — |
| Ubuntu 24.04 LTS | mariadb | No fix yet | — |
| Ubuntu 22.04 LTS | mariadb-10.6 | No fix yet | — |
| Ubuntu 20.04 LTS | mariadb-10.3 | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mariadb-10.1 | No fix yet | — |
| Ubuntu 16.04 LTS | mariadb-10.0 | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mariadb | 12.3.2-3.1 | openSUSE-SU-2026:12245-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | mariadb123 +15 | 3:12.3.3-2.amzn2023.0.1 | ALAS2023-2026-3311 |
Advisories 3
- ALAS2023-2026-3311 Important: mariadb123 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 11, 2026
- WID-SEC-2026-4018 MariaDB: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 9, 2026
- openSUSE-SU-2026:12245-1 libmariadbd-devel-12.3.2-3.1 on GA media SUSE / openSUSE Security Updates · Oct 24, 2026
References
- https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm
- https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1
- https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed
- https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3
- https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2
- https://jira.mariadb.org/browse/MDEV-40396
- https://jira.mariadb.org/browse/MDEV-40639