CVE-2026-85748
Full vulnerability record from the local CVENow database.
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.
Severity
CRITICAL
CVSS score
9.9
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-10-16 17:17:51.303000
Last modified
2026-10-20 15:32:54.420000
View original CVE JSON
{
"id": "CVE-2026-85748",
"sourceIdentifier": "[email protected]",
"published": "2026-10-16T17:17:51.303",
"lastModified": "2026-10-20T15:32:54.420",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "MariaDB",
"product": "server",
"versions": [
{
"version": ">= 12.3.1, < 12.3.3",
"status": "affected"
},
{
"version": ">= 13.0.1, < 13.0.2",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"baseScore": 9.9,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.1,
"impactScore": 6.0
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-10-16T16:54:30.361781Z",
"id": "CVE-2026-85748",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-416"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"versionStartIncluding": "12.3.1",
"versionEndExcluding": "12.3.3",
"matchCriteriaId": "E6988F1C-2D11-431B-BBE4-3AA8483627C8"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:mariadb:mariadb:13.0.1:*:*:*:*:*:*:*",
"matchCriteriaId": "E46FBE57-06D5-489E-9ECE-333F5F9AFD06"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3",
"source": "[email protected]",
"tags": [
"Release Notes"
]
},
{
"url": "https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2",
"source": "[email protected]",
"tags": [
"Release Notes"
]
},
{
"url": "https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://jira.mariadb.org/browse/MDEV-40396",
"source": "[email protected]",
"tags": [
"Issue Tracking"
]
},
{
"url": "https://jira.mariadb.org/browse/MDEV-40639",
"source": "[email protected]",
"tags": [
"Issue Tracking"
]
}
]
}