{"schemaVersion":4,"id":"CVE-2026-85748","aliases":["UBUNTU-CVE-2026-85748"],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-10-16T16:28:55.829Z","modified":"2026-10-16T16:54:40.841Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.9,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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","exploitability":7.9,"impact":10,"computed":true}]},"epss":{"probability":0.01179,"percentile":0.68707,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.01179},"history":[{"date":"2026-10-17T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00547,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00547,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00547,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00547,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00924,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00924,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01179,"percentile":0.68707}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01305,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01179,"percentile":0.68707}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"ubuntu","product":"mariadb","name":"mariadb","label":"mariadb","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.0","name":"mariadb-10.0","label":"mariadb-10.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.0","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.1","name":"mariadb-10.1","label":"mariadb-10.1","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.1","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.3","name":"mariadb-10.3","label":"mariadb-10.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.6","name":"mariadb-10.6","label":"mariadb-10.6","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.6","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"mariadb","product":"mariadb","name":"mariadb","label":"mariadb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 12.3.1, < 12.3.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"12.3.1","startInclusive":true,"end":"12.3.3","endInclusive":false}},{"text":"13.0.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"13.0.1"}}],"versionsText":"≥ 12.3.1, < 12.3.3 | 13.0.1","eol":{"isEol":false,"eolDate":"2026-12-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"13.0","label":"13.0","eolFrom":"2026-12-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"13.0.2"},"product":{"name":"mariadb","label":"MariaDB","category":"database"}},"hubHref":"/vendor/mariadb/mariadb"},{"vendor":"mariadb","product":"server","name":"server","label":"server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 12.3.1, < 12.3.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"12.3.1","startInclusive":true,"end":"12.3.3","endInclusive":false}},{"text":"≥ 13.0.1, < 13.0.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"13.0.1","startInclusive":true,"end":"13.0.2","endInclusive":false}}],"versionsText":"≥ 12.3.1, < 12.3.3 | ≥ 13.0.1, < 13.0.2","eol":null,"hubHref":"/vendor/mariadb/server"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","label":"github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory","REPORT"]},{"url":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","label":"github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","label":"github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","label":"github.com/MariaDB/server/releases/tag/mariadb-12.3.3","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","label":"github.com/MariaDB/server/releases/tag/mariadb-13.0.2","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://jira.mariadb.org/browse/MDEV-40396","label":"jira.mariadb.org/browse/MDEV-40396","hostname":"jira.mariadb.org","tags":["X Refsource MISC","Issue Tracking","REPORT"]},{"url":"https://jira.mariadb.org/browse/MDEV-40639","label":"jira.mariadb.org/browse/MDEV-40639","hostname":"jira.mariadb.org","tags":["X Refsource MISC","Issue Tracking","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-85748","label":"ubuntu.com/security/CVE-2026-85748","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-85748","label":"www.cve.org/CVERecord?id=CVE-2026-85748","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:12245-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:12245-1"]},"timeline":[{"kind":"published","date":"2026-10-16T16:28:55.829Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-16T16:54:40.841Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,1,99],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01179,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-16T16:54:40.841Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-10-16T16:54:40.841Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-10-16T16:54:40.841Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-16T16:54:30.361Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.01179,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:55:18.610Z","stale":false,"partial":false}}