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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Published: 2026-10-16T16:28:55.829Z
- Modified: 2026-10-22T09:00:03.365Z
- Also known as: BIT-MARIADB-2026-85748, BIT-MARIADB-MIN-2026-85748, BIT-MYSQL-CLIENT-2026-85748, GHSA-mv8g-9f7q-hprm
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- MariaDB server: >= 12.3.1, < 12.3.3; >= 13.0.1, < 13.0.2
- mariadb mariadb: from 12.3.1 before 12.3.3; 13.0.1
- mariadb (Bitnami): from 12.3.1 before 12.3.3; from 13.0.0 before 13.0.2
- mariadb-min (Bitnami): from 12.3.1 before 12.3.3; from 13.0.0 before 13.0.2
- mysql-client (Bitnami): from 12.3.1 before 12.3.3; from 13.0.0 before 13.0.2

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm> (advisory, vendor-advisory)
- <https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1> (fix, patch)
- <https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed> (fix, patch)
- <https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3> (article, release-notes)
- <https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2> (article, release-notes)
- <https://jira.mariadb.org/browse/MDEV-40396> (issue-tracking, report)
- <https://jira.mariadb.org/browse/MDEV-40639> (issue-tracking, report)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85748> (web)

## Sources

- CVE List: [CVE-2026-85748](https://www.cve.org/CVERecord?id=CVE-2026-85748), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-85748](https://nvd.nist.gov/vuln/detail/CVE-2026-85748), Public domain, modified 2026-10-20
- Bitnami Vulnerability Database: [BIT-MARIADB-2026-85748](https://osv.dev/vulnerability/BIT-MARIADB-2026-85748), Apache-2.0, modified 2026-10-22
- Bitnami Vulnerability Database: [BIT-MARIADB-MIN-2026-85748](https://osv.dev/vulnerability/BIT-MARIADB-MIN-2026-85748), Apache-2.0, modified 2026-10-22
- Bitnami Vulnerability Database: [BIT-MYSQL-CLIENT-2026-85748](https://osv.dev/vulnerability/BIT-MYSQL-CLIENT-2026-85748), Apache-2.0, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-85748 · Whole record: https://cve.day/CVE-2026-85748.json · Rebuilt by cve.day 2026-11-25T22:59:45.070Z
