{"id":"CVE-2026-85748","title":"mariadb: mariadb: use-after-free in SYS_REFCURSOR during FETCH operations (CVE-2026-85748)","summary":"A flaw was found in MariaDB. An authenticated database user with low privileges can trigger a use-after-free memory corruption condition during cursor FETCH operations involving SYS_REFCURSOR. This flaw allows an attacker to corrupt memory…","severity":"high","cvss":8.5,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","cvssSource":"vendor","cwe":"CWE-416","vendor":"Red Hat","product":"server","affected":["server >= 12.3.1, < 12.3.3","server >= 13.0.1, < 13.0.2"],"published":"2026-10-15","updated":"2026-10-17","sourceUpdated":"2026-10-17T03:05:50+00:00","source":"CSAF","sourceUrl":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85748.json","references":[{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85748.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-85748"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2553279"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-85748"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85748"},{"url":"https://hackerone.com/reports/3856148"},{"url":"https://jira.mariadb.org/browse/MDEV-40639"},{"url":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm","label":"https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm"},{"url":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1","label":"https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1"},{"url":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed","label":"https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed"},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3","label":"https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3"},{"url":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2","label":"https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2"},{"url":"https://jira.mariadb.org/browse/MDEV-40396","label":"https://jira.mariadb.org/browse/MDEV-40396"}],"tags":["csaf","vex","red-hat","cve.org"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T16:54:30.361781Z"},"scores":{"vendor":8.5,"cna":9.9},"ingestedAt":"2026-10-16T17:24:46.897Z","epss":0.01179,"epssPercentile":0.67514,"slug":"CVE-2026-85748","body":"## Overview\n\nA flaw was found in MariaDB. An authenticated database user with low privileges can trigger a use-after-free memory corruption condition during cursor FETCH operations involving SYS_REFCURSOR. This flaw allows an attacker to corrupt memory and hijack program execution flow, potentially leading to privilege escalation and arbitrary code execution on the host system or causing a denial of service (DoS) by crashing the database server.\n\n## Vendor advisories\n\n- **Red Hat VEX** · Important · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85748.json)\n\n**mariadb: mariadb: use-after-free in SYS_REFCURSOR during FETCH operations** — rated Important by Red Hat. Released 2026-10-15, updated 2026-10-17.\n\nNot affected:\n\n- Red Hat Enterprise Linux 10\n- Red Hat Enterprise Linux 7\n- Red Hat Enterprise Linux 8\n- Red Hat Enterprise Linux 9\n- Red Hat Hardened Images\n- Red Hat OpenStack Platform 13 (Queens)\n\n## Remediation\n\nRefer to the advisory for fix availability.","depth":"twilight","depthScore":47,"depthScoreParts":{"impact":46.8,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[{"seq":223552,"id":"CVE-2026-85748","ts":1792238305827,"field":"cvss","old":"9.9","new":"8.5"},{"seq":223551,"id":"CVE-2026-85748","ts":1792238305827,"field":"severity","old":"critical","new":"high"}]}