CVE-2026-85748

Source
https://cve.org/CVERecord?id=CVE-2026-85748
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85748.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-85748
Aliases
  • GHSA-mv8g-9f7q-hprm
Published
2026-10-16T16:28:55Z
Modified
2026-10-17T07:06:54Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
MariaDB: Use-after-free with a large number of SYS_REFCURSOR's
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-416"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85748.json"
}
References

Affected packages

Git / github.com/mariadb/server

Affected ranges

Type
GIT
Repo
https://github.com/mariadb/server
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "12.3.1"
        },
        {
            "fixed":  "12.3.3"
        },
        {
            "introduced":  "13.0.1"
        },
        {
            "fixed":  "13.0.2"
        }
    ],
    "source":  "AFFECTED_FIELD"
}

Affected versions

mariadb-12.*
mariadb-12.3.1
mariadb-13.*
mariadb-13.0.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85748.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "339712868486696881928202886484344029960",
            "length":  1715
        },
        "id":  "CVE-2026-85748-1cd3e8db",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/mariadb/server/commit/83e909fc2a0dbc394b4b683fb3fa2d7dcf26cc5e",
        "target":  {
            "file":  "sql/log_event_server.cc",
            "function":  "Rows_log_event_fragmenter::fragment"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "171922335289695664967320282302097012127",
                "314879264303882873216162120692739820747",
                "296657960952465744719770094395708912555",
                "28908880241426286725700820784852115102"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-85748-e432b228",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/mariadb/server/commit/83e909fc2a0dbc394b4b683fb3fa2d7dcf26cc5e",
        "target":  {
            "file":  "sql/log_event_server.cc"
        }
    }
]
vanir_signatures_modified
"2026-10-17T07:06:54Z"