CVE-2022-24050 json
MariaDB CONNECT Storage Engine Use-After-Free Privilege Escalation Vulnerability.
published 2022-02-18 4 y ago modified 2026-09-08 2 mo ago also BIT-mariadb-2022-24050 , BIT-mariadb-min-2022-24050 , BIT-mysql-client-2022-24050 , EUVD-2022-28965
- cvss
- 7.0
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
MariaDB CONNECT Storage Engine Use-After-Free Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of MariaDB. Authentication is required to exploit this vulnerability. The specific flaw exists within the processing of SQL queries. The issue results from the lack of validating the existence of an object prior to performing operations on the object. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16207.
Patch / fix
- bitnami mariadb 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1
- bitnami mariadb-min 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2
- bitnami mysql-client 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1
- mariadb mariadb 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2
- mariadb-10.5 Debian 11 1:10.5.15-0+deb11u1
debian advisories DEBIAN-CVE-2022-24050
- mariadb-10.3 Ubuntu 20.04 LTS 1:10.3.34-0ubuntu0.20.04.1
ubuntu advisories UBUNTU-CVE-2022-24050
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- mysql-selinux RHEL 9 1.0.5-1.el9_0
- galera RHEL 9 26.4.11-1.el9_0
- mariadb RHEL 9 3:10.5.16-2.el9_0
- mariadb-pam RHEL 9 3:10.5.16-2.el9_0
- mariadb-test RHEL 9 3:10.5.16-2.el9_0
- mariadb-backup RHEL 9 3:10.5.16-2.el9_0
- mariadb-common RHEL 9 3:10.5.16-2.el9_0
- mariadb-errmsg RHEL 9 3:10.5.16-2.el9_0
red hat advisories RHSA-2022:5948RHSA-2022:6306RHSA-2022:6443RHSA-2022:5826RHSA-2022:5759RHSA-2023:6821
- mariadb104 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 10.4.30-8.5.46
- lz4 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.8.0-3.5.2
- python-mysqlclient SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.3.14-8.9.2
- mariadb-connector-c SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 3.1.22-2.35.1
- mariadb SLE Module for Server Applications 15 SP4, openSUSE Leap 15.4 10.6.8-150400.3.7.1
- mariadb SLE Module for Server Applications 15 SP3, openSUSE Leap 15.4 10.5.15-150300.3.15.1
- mariadb SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +3 more 10.2.43-3.47.1
- mariadb SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +7 more 10.4.24-3.25.1
suse advisories SUSE-RU-2023:4991-1SUSE-RU-2023:3956-1SUSE-SU-2022:2561-1SUSE-SU-2022:0731-2SUSE-SU-2022:0782-1SUSE-SU-2022:0731-1
- mariadb openSUSE Tumbleweed 10.7.3-1.1
- mariadb openSUSE Leap 15.3 10.5.15-150300.3.15.1
opensuse advisories openSUSE-SU-2024:11867-1openSUSE-SU-2022:0731-1
- Judy AlmaLinux 8 1.0.5-18.module_el8.6.0+3139+3c630e87
- Judy AlmaLinux 8 1.0.5-18.module_el8.6.0+3072+3c630e87
- galera AlmaLinux 8 25.3.35-1.module_el8.6.0+3265+230ed96b
- mariadb AlmaLinux 8 3:10.3.35-1.module_el8.6.0+3265+230ed96b
- mariadb-test AlmaLinux 8 3:10.3.35-1.module_el8.6.0+3265+230ed96b
- mariadb-backup AlmaLinux 8 3:10.3.35-1.module_el8.6.0+3265+230ed96b
- mariadb-common AlmaLinux 8 3:10.3.35-1.module_el8.6.0+3265+230ed96b
- mariadb-errmsg AlmaLinux 8 3:10.3.35-1.module_el8.6.0+3265+230ed96b
almalinux advisories ALSA-2022:6443ALSA-2022:5948ALSA-2022:5826
- Judy Rocky Linux 8 1.0.5-18.module+el8.4.0+427+adf35707
- galera Rocky Linux 8 25.3.35-1.module+el8.6.0+1005+cdf19c22
- mariadb Rocky Linux 8 3:10.3.35-1.module+el8.6.0+1005+cdf19c22
- mysql-selinux Rocky Linux 9 1.0.5-1.el9_0
- galera Rocky Linux 9 26.4.11-1.el9_0
- mariadb Rocky Linux 9 3:10.5.16-2.el9_0
- galera Rocky Linux 8 26.4.11-1.module+el8.6.0+995+5ac2a483
- mariadb Rocky Linux 8 3:10.5.16-2.module+el8.6.0+995+5ac2a483
rocky linux advisories RLSA-2022:6443RLSA-2022:5948RLSA-2022:5826
- mariadb Alpine 3.12 10.4.24-r0
- mariadb Alpine 3.14, Alpine 3.13 10.5.15-r0
- mariadb Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 10.6.7-r0
alpine advisories ALPINE-CVE-2022-24050
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- mariadb.com/kb/en/security/ advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24050 updated cvss 7.8
mariadb: lack of validating the existence of an object prior to performing operations on the object
-
Red Hat Enterprise Linux 7 mariadb, mariadb-libs, mariadb-test, mariadb-bench, mariadb-server, mariadb-embedded Red Hat OpenStack Platform 13 (Queens) mariadb, mariadb-libs, mariadb-test, mariadb-common, mariadb-config, mariadb-errmsg, +3 moreaffected: no fix planned “Out of support scope”
-
Red Hat CodeReady Linux Builder (v. 9) mariadb-test 10.5.16-2.el9_0fixed: vendor fix RHSA-2022:5948
-
Red Hat Enterprise Linux AppStream (v. 8) Judy 1.0.5-18.module+el8+2765+cfa4f87b, Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9, galera 25.3.35-1.module+el8.6.0+15949+4ba4ec26, galera 26.4.11-1.module+el8.6.0+15639+405b7427, mariadb 10.3.35-1.module+el8.6.0+15949+4ba4ec26, mariadb 10.5.16-2.module+el8.6.0+15639+405b7427, +21 morefixed: vendor fix RHSA-2022:6443
-
Red Hat Enterprise Linux AppStream (v. 9) mariadb 10.5.16-2.el9_0, mariadb-pam 10.5.16-2.el9_0, mariadb-backup 10.5.16-2.el9_0, mariadb-common 10.5.16-2.el9_0, mariadb-errmsg 10.5.16-2.el9_0, mariadb-server 10.5.16-2.el9_0, +5 morefixed: vendor fix RHSA-2022:5948
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9, galera 26.4.14-1.module+el8.4.0+20291+fd32d29c, mariadb 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-pam 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-test 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-backup 10.5.22-1.module+el8.4.0+20291+fd32d29c, +8 more Red Hat Enterprise Linux AppStream E4S (v.8.4) Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9, galera 26.4.14-1.module+el8.4.0+20291+fd32d29c, mariadb 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-pam 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-test 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-backup 10.5.22-1.module+el8.4.0+20291+fd32d29c, +8 more Red Hat Enterprise Linux AppStream TUS (v.8.4) Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9, galera 26.4.14-1.module+el8.4.0+20291+fd32d29c, mariadb 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-pam 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-test 10.5.22-1.module+el8.4.0+20291+fd32d29c, mariadb-backup 10.5.22-1.module+el8.4.0+20291+fd32d29c, +8 morefixed: vendor fix RHSA-2023:6821
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-mariadb103-mariadb 10.3.35-1.el7, rh-mariadb105-mariadb 10.5.16-2.el7, rh-mariadb105-mariadb-pam 10.5.16-2.el7, rh-mariadb103-mariadb-test 10.3.35-1.el7, rh-mariadb105-mariadb-libs 10.5.16-2.el7, rh-mariadb105-mariadb-test 10.5.16-2.el7, +32 more Red Hat Software Collections for RHEL(v. 7) rh-mariadb103-mariadb 10.3.35-1.el7, rh-mariadb105-mariadb 10.5.16-2.el7, rh-mariadb105-mariadb-pam 10.5.16-2.el7, rh-mariadb103-mariadb-test 10.3.35-1.el7, rh-mariadb105-mariadb-libs 10.5.16-2.el7, rh-mariadb105-mariadb-test 10.5.16-2.el7, +32 morefixed: vendor fix RHSA-2022:6306
-
Red Hat Enterprise Linux AppStream (v. 9) galera 26.4.11-1.el9_0, mysql-selinux 1.0.5-1.el9_0 Red Hat JBoss Core Services mariadb Red Hat Software Collections for RHEL Workstation(v. 7) rh-mariadb103-galera 25.3.35-1.el7, rh-mariadb105-galera 26.4.11-1.el7 Red Hat Software Collections for RHEL(v. 7) rh-mariadb103-galera 25.3.35-1.el7, rh-mariadb105-galera 26.4.11-1.el7not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.0 | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | mariadb | >=10.2.0, <10.2.42 >=10.3.0, <10.3.33 >=10.4.0, <10.4.23 >=10.5.0, <10.5.14 >=10.6.0, <10.6.6 >=10.7.0, <10.7.2 >=10.8.0, <10.8.1 |
10.2.42 10.3.33 10.4.23 10.5.14 10.6.6 10.7.2 10.8.1 |
| bitnami | mariadb-min | >=10.2.0, <10.2.42 >=10.3.0, <10.3.33 >=10.4.0, <10.4.23 >=10.5.0, <10.5.14 >=10.6.0, <10.6.6 >=10.7.0, <10.7.2 >=10.8.0, <=10.8.0 |
10.2.42 10.3.33 10.4.23 10.5.14 10.6.6 10.7.2 |
| bitnami | mysql-client | >=10.2.0, <10.2.42 >=10.3.0, <10.3.33 >=10.4.0, <10.4.23 >=10.5.0, <10.5.14 >=10.6.0, <10.6.6 >=10.7.0, <10.7.2 >=10.8.0, <10.8.1 |
10.2.42 10.3.33 10.4.23 10.5.14 10.6.6 10.7.2 10.8.1 |
Affected products
- MariaDB MariaDB
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
mariadb.com
/kb/en/security/
patch, vendor-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/
vendor-advisory, web
-
zerodayinitiative.com
/advisories/ZDI-22-364/
third-party-advisory, vdb-entry, advisory
-
security.netapp.com
/advisory/ntap-20220318-0004/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24050
web
Sources
- CVE List CVE-2022-24050
- NVD CVE-2022-24050
- OSV BIT-mariadb-2022-24050
- OSV BIT-mariadb-min-2022-24050
- OSV BIT-mysql-client-2022-24050
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.