{"id":"CVE-2026-85748","aliases":["BELL-CVE-2026-85748","BIT-mariadb-2026-85748","BIT-mariadb-min-2026-85748","BIT-mysql-client-2026-85748","EUVD-2026-102941","GHSA-mv8g-9f7q-hprm","UBUNTU-CVE-2026-85748","openSUSE-SU-2026:12245-1"],"status":"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.","severity":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.01179,"percentile":0.6812,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2026-10-16T16:28:55Z","modified":"2026-10-28T20:17:13Z","fixes":[{"ecosystem":"Bitnami","package":"mariadb","fixed_in":["12.3.3","13.0.2"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"mariadb-min","fixed_in":["12.3.3","13.0.2"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"mysql-client","fixed_in":["12.3.3","13.0.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"mariadb","ranges":[{"type":"SEMVER","events":[{"introduced":"12.3.1"},{"fixed":"12.3.3"},{"introduced":"13.0.0"},{"fixed":"13.0.2"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"mariadb-min","ranges":[{"type":"SEMVER","events":[{"introduced":"12.3.1"},{"fixed":"12.3.3"},{"introduced":"13.0.0"},{"fixed":"13.0.2"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"mysql-client","ranges":[{"type":"SEMVER","events":[{"introduced":"12.3.1"},{"fixed":"12.3.3"},{"introduced":"13.0.0"},{"fixed":"13.0.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mariadb-10.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.0.20-0ubuntu0.15.04.1","10.0.22-0ubuntu1","10.0.23-1","10.0.23-2","10.0.24-7","10.0.25-0ubuntu0.16.04.1","10.0.27-0ubuntu0.16.04.1","10.0.28-0ubuntu0.16.04.1","10.0.29-0ubuntu0.16.04.1","10.0.31-0ubuntu0.16.04.2","10.0.33-0ubuntu0.16.04.1","10.0.34-0ubuntu0.16.04.1","10.0.36-0ubuntu0.16.04.1","10.0.38-0ubuntu0.16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"mariadb-10.1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.1.25-1","1:10.1.29-6","1:10.1.34-0ubuntu0.18.04.1","1:10.1.38-0ubuntu0.18.04.1","1:10.1.38-0ubuntu0.18.04.2","1:10.1.40-0ubuntu0.18.04.1","1:10.1.41-0ubuntu0.18.04.1","1:10.1.43-0ubuntu0.18.04.1","1:10.1.44-0ubuntu0.18.04.1","1:10.1.47-0ubuntu0.18.04.1","1:10.1.48-0ubuntu0.18.04.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"mariadb-10.3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:10.3.17-1","1:10.3.18-1","1:10.3.19-1","1:10.3.21-2","1:10.3.22-1","1:10.3.22-1ubuntu1","1:10.3.25-0ubuntu0.20.04.1","1:10.3.29-0ubuntu0.20.04.1","1:10.3.30-0ubuntu0.20.04.1","1:10.3.31-0ubuntu0.20.04.1","1:10.3.32-0ubuntu0.20.04.1","1:10.3.34-0ubuntu0.20.04.1","1:10.3.37-0ubuntu0.20.04.1","1:10.3.38-0ubuntu0.20.04.1","1:10.3.39-0ubuntu0.20.04.2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"mariadb-10.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:10.6.7-2ubuntu1","1:10.6.7-2ubuntu1.1","1:10.6.11-0ubuntu0.22.04.1","1:10.6.12-0ubuntu0.22.04.1","1:10.6.16-0ubuntu0.22.04.1","1:10.6.18-0ubuntu0.22.04.1","1:10.6.21-0ubuntu0.22.04.2","1:10.6.22-0ubuntu0.22.04.1","1:10.6.23-0ubuntu0.22.04.1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"mariadb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:10.11.4-1","1:10.11.5-3","1:10.11.6-1","1:10.11.6-2","1:10.11.7-2ubuntu1","1:10.11.7-2ubuntu2","1:10.11.8-0ubuntu0.24.04.1","1:10.11.11-0ubuntu0.24.04.2","1:10.11.13-0ubuntu0.24.04.1","1:10.11.14-0ubuntu0.24.04.1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"mariadb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:11.8.6-5","1:11.8.8-1","1:11.8.9+ds-4ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"mariadb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:11.8.3-1build1","1:11.8.5-1","1:11.8.5-2","1:11.8.5-3","1:11.8.5-4","1:11.8.6-1","1:11.8.6-3","1:11.8.6-4","1:11.8.6-5","1:11.8.6-5ubuntu0.1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"mariadb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.2-3.1"}]}],"bundled":22}],"products":[{"vendor":"devolutions","product":"server"},{"vendor":"mariadb","product":"mariadb"},{"vendor":"mariadb","product":"server"}],"references":[{"url":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","report"]},{"url":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","tags":["x_refsource_MISC","Release Notes","article","web"]},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","tags":["x_refsource_MISC","Release Notes","article","web"]},{"url":"https://jira.mariadb.org/browse/MDEV-40396","tags":["x_refsource_MISC","Issue Tracking","report","web"]},{"url":"https://jira.mariadb.org/browse/MDEV-40639","tags":["x_refsource_MISC","Issue Tracking","report","web"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2026-85748","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85748","tags":["web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85748.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-85748","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-85748","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2026-102523","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107814","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107815","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107816","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107817","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107818","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107821","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107822","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-107823","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-47023","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-60184","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-60331","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-60585","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-60747","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-61081","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-85745","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-85746","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-85748","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-85985","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-86047","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-92262","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-97380","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2026-85748","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.","status":"published","published":"2026-10-16T16:28:55.829Z","modified":"2026-10-16T16:54:40.841Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:19:52.410665Z"}],"euvd":[{"id":"EUVD-2026-102941","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.","status":"published","published":"2026-10-16T16:28:55Z","modified":"2026-10-16T16:54:40Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T17:00:04.71095Z"}],"nvd":[{"id":"CVE-2026-85748","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.","status":"published","published":"2026-10-16T17:17:51.303Z","modified":"2026-10-20T15:32:54.42Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:13:00.123071Z"}],"osv":[{"id":"BELL-CVE-2026-85748","title":"CVE-2026-85748 does not affect BellSoft software","status":"withdrawn","published":"2026-10-17T06:05:39.407654Z","modified":"2026-10-28T07:15:08.224238761Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:26.341144Z"},{"id":"CVE-2026-85748","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.","status":"published","published":"2026-10-16T16:28:55.829Z","modified":"2026-10-28T11:00:45.744372467Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:45:18.825071Z"},{"id":"UBUNTU-CVE-2026-85748","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.","status":"published","published":"2026-10-16T17:17:00Z","modified":"2026-10-28T20:17:13.475193421Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:57:24.828975Z"},{"id":"BIT-mariadb-2026-85748","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.","status":"published","published":"2026-10-21T08:52:56.896Z","modified":"2026-10-22T09:00:03.365318828Z","updated_at":"2026-11-02T15:28:32.645004Z"},{"id":"BIT-mariadb-min-2026-85748","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.","status":"published","published":"2026-10-21T08:53:11.75Z","modified":"2026-10-22T09:00:03.279476657Z","updated_at":"2026-11-02T15:28:32.645004Z"},{"id":"BIT-mysql-client-2026-85748","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.","status":"published","published":"2026-10-21T08:56:37.698Z","modified":"2026-10-22T09:00:03.303557281Z","updated_at":"2026-11-02T15:28:33.469426Z"},{"id":"openSUSE-SU-2026:12245-1","title":"libmariadbd-devel-12.3.2-3.1 on GA media","description":"These are all security issues fixed in the libmariadbd-devel-12.3.2-3.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-10-23T00:00:00Z","modified":"2026-10-24T17:23:11.303910676Z","updated_at":"2026-11-02T16:58:40.245664Z"}]}}
