← Back to results
Vulnerability record · public intelligence
CVE-2026-85748
CRITICAL

MariaDB: Use-after-free with a large number of SYS_REFCURSOR's

Published Oct 16, 2026 · Updated Nov 3, 2026

Severity · CVSSCRITICAL · Not scored
Known exploitationNot listed
EPSS / likelihood1.18%
QFinch risk scoreNot available

Original summary

Normalized public record · Updated Nov 3, 2026

MariaDB: Use-after-free with a large number of SYS_REFCURSOR's

Publisher and source text is retained separately from QFinch interpretation.

QFinch assessment

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.

Evidence: public source records

Affected products

Affected scope reported by the available public evidence
Affected package, product or rangeFix status
Consult the referenced vendor advisory for affected versions.Consult source advisory

Matching a version is only one part of assessing exposure. QFinch has not assessed your environment on this public page.

Remediation

Apply the vendor-supported fixed release or mitigation, then verify the affected component is no longer reachable.

  1. Confirm the affected product and reachable code path exist in your environment.
  2. Apply the vendor-supported patch or mitigation from the primary advisory.
  3. Rescan the exact deployed revision and retain verification evidence.
Review primary references

Evidence coverage

FIRST-EPSSCVE-LIST-V5
SSVC priority
MEDIUM
Confidence
Not available
Aliases
None reported

Scores appear only when corresponding evidence exists. Missing data is never interpreted as zero risk.

Sources and record history

  1. Security advisory ↗
  2. Patch commit ↗
  3. Patch commit ↗
  4. Source repository ↗
  5. Source repository ↗
  6. https://jira.mariadb.org/browse/MDEV-40396 ↗
  7. https://jira.mariadb.org/browse/MDEV-40639 ↗

Record history

Published Oct 16, 2026 · Last refreshed Nov 3, 2026