CVE-2026-85748
mariadb: mariadb: use-after-free in SYS_REFCURSOR during FETCH operations
Overview
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.
Source: OX vulnerability database
Severity
9.9 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness: CWE-416
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | mariadb | >=12.3.1, <12.3.3>=13.0.0, <13.0.2 | 12.3.313.0.2 |
| Bitnami | mariadb-min | >=12.3.1, <12.3.3>=13.0.0, <13.0.2 | 12.3.313.0.2 |
| Bitnami | mysql-client | >=12.3.1, <12.3.3>=13.0.0, <13.0.2 | 12.3.313.0.2 |
Open a package to see all its vulnerabilities.
Operating systems · 2 fixes
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | mariadb123 +27 | 3:12.3.3-2.amzn2023.0.1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libmariadbd-devel +9 | 12.3.2-3.1 | openSUSE-SU-2026:12245-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-85748
- github.com https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1
- github.com https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed
- github.com https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3
- github.com https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2
- github.com https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm
- hackerone.com https://hackerone.com/reports/3856148
- jira.mariadb.org https://jira.mariadb.org/browse/MDEV-40396
- jira.mariadb.org https://jira.mariadb.org/browse/MDEV-40639
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-85748
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.