{"id":"CVE-2026-85748","state":"PUBLISHED","title":"MariaDB: Use-after-free with a large number of SYS_REFCURSOR's","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.","publishedAt":"2026-10-16T16:28:55.829Z","updatedAt":"2026-10-16T16:54:40.841Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["MariaDB server"],"affected":[{"vendor":"MariaDB","product":"server","versions":[{"version":">= 12.3.1, < 12.3.3","status":"affected"},{"version":">= 13.0.1, < 13.0.2","status":"affected"}]}],"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"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85748.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85748","state":"PUBLISHED","datePublished":"2026-10-16T16:28:55.829Z","dateUpdated":"2026-10-16T16:54:40.841Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-04T14:50:16.720Z"},"containers":{"cna":{"title":"MariaDB: Use-after-free with a large number of SYS_REFCURSOR's","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":[{"vendor":"MariaDB","product":"server","versions":[{"version":">= 12.3.1, < 12.3.3","status":"affected"},{"version":">= 13.0.1, < 13.0.2","status":"affected"}]}],"references":[{"url":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","name":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","name":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","tags":["x_refsource_MISC"]},{"url":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","name":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","tags":["x_refsource_MISC"]},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","name":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","name":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","tags":["x_refsource_MISC"]},{"url":"https://jira.mariadb.org/browse/MDEV-40396","name":"https://jira.mariadb.org/browse/MDEV-40396","tags":["x_refsource_MISC"]},{"url":"https://jira.mariadb.org/browse/MDEV-40639","name":"https://jira.mariadb.org/browse/MDEV-40639","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416: Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-16T16:28:55.829Z"},"source":{"advisory":"GHSA-mv8g-9f7q-hprm","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-16T16:54:30.361781Z","id":"CVE-2026-85748","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T16:54:40.841Z"}}]}}}