# CVE-2026-85748: MariaDB: Use-after-free with a large number of SYS\_REFCURSOR's

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-10-16 · Modified: 2026-10-16
- Aliases: UBUNTU-CVE-2026-85748
- Record: https://cvemate.com/vulnerability/CVE-2026-85748 · JSON: https://cvemate.com/vulnerability/CVE-2026-85748/json

## Description

```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.
```

## Signals

- CVSS: 9.9 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.179%, percentile 68.707%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu mariadb (Ubuntu): All versions (No fix recorded)
- ubuntu mariadb-10.0 (Ubuntu): All versions (No fix recorded)
- ubuntu mariadb-10.1 (Ubuntu): All versions (No fix recorded)
- ubuntu mariadb-10.3 (Ubuntu): All versions (No fix recorded)
- ubuntu mariadb-10.6 (Ubuntu): All versions (No fix recorded)
- mariadb mariadb: ≥ 12.3.1, \< 12.3.3 \| 13.0.1
- mariadb server: ≥ 12.3.1, \< 12.3.3 \| ≥ 13.0.1, \< 13.0.2

## References

- <https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm>
- <https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1>
- <https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed>
- <https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3>
- <https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2>
- <https://jira.mariadb.org/browse/MDEV-40396>
- <https://jira.mariadb.org/browse/MDEV-40639>
- <https://ubuntu.com/security/CVE-2026-85748>
- <https://www.cve.org/CVERecord?id=CVE-2026-85748>

---

Data as of 2026-12-05T06:34:42.043Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
