MariaDB: Use-after-free with a large number of SYS_REFCURSOR's
Summary
| CVE | CVE-2026-85748 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-16 17:17:51 UTC |
| Updated | 2026-10-20 15:32:54 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.9 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS: 0.005460000 probability, percentile 0.447210000 (date 2026-10-20)
Problem Types: CWE-416 | CWE-416 CWE-416: Use After Free
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.9 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 9.9 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/MariaDB/server/releases/tag/mariadb-13.0.2 | [email protected] | github.com | Release Notes |
| github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1 | [email protected] | github.com | Patch |
| github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm | [email protected] | github.com | Vendor Advisory |
| github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed | [email protected] | github.com | Patch |
| jira.mariadb.org/browse/MDEV-40396 | [email protected] | jira.mariadb.org | Issue Tracking |
| jira.mariadb.org/browse/MDEV-40639 | [email protected] | jira.mariadb.org | Issue Tracking |
| github.com/MariaDB/server/releases/tag/mariadb-12.3.3 | [email protected] | github.com | Release Notes |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.