CVE-2026-85748Mariadb
Use-after-free in SYS_REFCURSOR handling in MariaDB
Critical 9.9
Follow: this CVE · Mariadb · Mariadb We alert you by email or Slack (account required).
- 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.
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.
- Apply the vendor's security update for Mariadb.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mariadb | mariadb | ≥ 12.3.1 < 12.3.3 |
| mariadb | mariadb | 13.0.1 |
Official advisories
- libmariadbd-devel-12.3.2-3.1 on GA media · SUSE · openSUSE-SU-2026:12245-1 · Oct 23, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Vendor Advisory
- jira.mariadb.org Issue Tracking
- jira.mariadb.org Issue Tracking