Live threats

All CVEs / Mariadb

CVE-2026-85748Mariadb

Use-after-free in SYS_REFCURSOR handling in MariaDB

Critical 9.9

Priority
59
CVSS 3.1
9.9
EPSS
—
Auth required
Yes
Published
Oct 16, 2026
Updated
Oct 20, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-416
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

What happens

MariaDB versions 12.3.1 to 12.3.2 and 13.0.1 contain a use-after-free vulnerability in SYS_REFCURSOR handling. A low-privileged authenticated attacker can open multiple cursors and trigger the flaw when fetching data, enabling remote code execution when combined with another vulnerability.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 12.3.3, 13.0.2

Update MariaDB to version 12.3.3 or 13.0.2 or later.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Mariadb.

Affected products (CPE)

VendorProductVersions
mariadbmariadb≥ 12.3.1 < 12.3.3
mariadbmariadb13.0.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.