{"api_version":"1","generated_at":"2026-10-21T22:06:28+00:00","cve":"CVE-2026-85748","urls":{"html":"https://cve.report/CVE-2026-85748","api":"https://cve.report/api/cve/CVE-2026-85748.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-85748","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-85748"},"summary":{"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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-10-16 17:17:51","updated_at":"2026-10-20 15:32:54"},"problem_types":["CWE-416","CWE-416 CWE-416: Use After Free"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"9.9","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"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"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"9.9","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"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"}}],"references":[{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","name":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","refsource":"security-advisories@github.com","tags":["Release Notes"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","name":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","refsource":"security-advisories@github.com","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","name":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","refsource":"security-advisories@github.com","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","name":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","refsource":"security-advisories@github.com","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://jira.mariadb.org/browse/MDEV-40396","name":"https://jira.mariadb.org/browse/MDEV-40396","refsource":"security-advisories@github.com","tags":["Issue Tracking"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://jira.mariadb.org/browse/MDEV-40639","name":"https://jira.mariadb.org/browse/MDEV-40639","refsource":"security-advisories@github.com","tags":["Issue Tracking"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","name":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","refsource":"security-advisories@github.com","tags":["Release Notes"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-85748","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85748","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"MariaDB","product":"server","version":"affected >= 12.3.1, < 12.3.3","platforms":[]},{"source":"CNA","vendor":"MariaDB","product":"server","version":"affected >= 13.0.1, < 13.0.2","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2026","cve_id":"85748","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mariadb","cpe5":"mariadb","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"85748","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mariadb","cpe5":"mariadb","cpe6":"13.0.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"85748","cve":"CVE-2026-85748","epss":"0.005460000","percentile":"0.447210000","score_date":"2026-10-20","updated_at":"2026-10-21 00:14:27"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-85748","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-10-16T16:54:30.361781Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-10-16T16:54:40.841Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"product":"server","vendor":"MariaDB","versions":[{"status":"affected","version":">= 12.3.1, < 12.3.3"},{"status":"affected","version":">= 13.0.1, < 13.0.2"}]}],"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."}],"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","description":"CWE-416: Use After Free","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-16T16:28:55.829Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm"},{"name":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","tags":["x_refsource_MISC"],"url":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1"},{"name":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","tags":["x_refsource_MISC"],"url":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed"},{"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-12.3.3"},{"name":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","tags":["x_refsource_MISC"],"url":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2"},{"name":"https://jira.mariadb.org/browse/MDEV-40396","tags":["x_refsource_MISC"],"url":"https://jira.mariadb.org/browse/MDEV-40396"},{"name":"https://jira.mariadb.org/browse/MDEV-40639","tags":["x_refsource_MISC"],"url":"https://jira.mariadb.org/browse/MDEV-40639"}],"source":{"advisory":"GHSA-mv8g-9f7q-hprm","discovery":"UNKNOWN"},"title":"MariaDB: Use-after-free with a large number of SYS_REFCURSOR's"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-85748","datePublished":"2026-10-16T16:28:55.829Z","dateReserved":"2026-09-04T14:50:16.720Z","dateUpdated":"2026-10-16T16:54:40.841Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-16 17:17:51","lastModifiedDate":"2026-10-20 15:32:54","problem_types":["CWE-416","CWE-416 CWE-416: Use After Free"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","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}],"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"}}]},"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"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"85748","Ordinal":"1","Title":"MariaDB: Use-after-free with a large number of SYS_REFCURSOR's","CVE":"CVE-2026-85748","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"85748","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"MariaDB: Use-after-free with a large number of SYS_REFCURSOR's"}]}}}