---
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
---

## Overview

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 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.

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85748.json)

**mariadb: mariadb: use-after-free in SYS_REFCURSOR during FETCH operations** — rated Important by Red Hat. Released 2026-10-15, updated 2026-10-17.

Not affected:

- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat OpenStack Platform 13 (Queens)

## Remediation

Refer to the advisory for fix availability.
