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

Published Oct 16, 2026
·
Updated

MariaDB server is a community developed fork of MySQL server. From 12.3.1 until 12.3.3 and 13.0.2, SYSREFCURSOR handling is affected because cursor-array reallocation can leave stale references in routine contexts. A low-privileged attacker can open a large number of SYSREFCURSORs 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 Software

1 affected component
MariaDB MariaDB Server>=12.3.1<12.3.3, >=13.0.0<13.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MariaDB Server to a version that resolves this vulnerability.

    Fixed in 12.3.3
  2. Upgrade

    Upgrade MariaDB Server to a version that resolves this vulnerability.

    Fixed in 13.0.2

Event History

Oct 16, 2026
CVE Published
via MITRE·04:28 PM
Data Sourced
via MITRE·04:28 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

MariaDB Server versions from 12.3.1 through 12.3.3, and version 13.0.2, are identified as affected. The issue is fixed in 12.3.3 and 13.0.2.

2

What access does an attacker need to trigger the flaw?

An attacker needs low-privileged access to the MariaDB server. They can open a large number of SYS_REFCURSORs and fetch one to trigger the use-after-free.

3

Does exploitation alone provide remote code execution?

The described use-after-free can enable remote code execution when combined with another vulnerability. The provided information does not state that this issue alone results in remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203