CVE-2026-85748: MariaDB: Use-after-free with a large number of SYS_REFCURSOR's

CVE-2026-85748 affects 3 listed versions of MariaDB in the Dawnsentry catalogue.

9.9CVSS critical
None knownexploitation
1%EPSS (next 30 days)
16 October 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

MariaDB

3 of 250 listed versions are affected. Fixed in 13.0.2, 12.3.3. The newest release, 13.1.2, is not affected.

13.0.1 12.3.2 12.3.1

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (GitHub)

Published by GitHub on 16 October 2026. Last changed 20 October 2026.

Sources

Check one version you run: look CVE-2026-85748 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.