CVE-2022-24051
MariaDB CONNECT Storage Engine Format String 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 proper validation of a user-supplied string before using it as a format specifier. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16193.
What to do
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | mariadb-10.6 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | mariadb-10.3 | Fixed | 1:10.3.34-0ubuntu0.20.04.1 | UBUNTU-CVE-2022-24051 |
| Ubuntu 18.04 | mariadb-10.1 | Fix pending | UBUNTU-CVE-2022-24051 | |
| Ubuntu 16.04 | mariadb-10.0 | Fix pending | UBUNTU-CVE-2022-24051 | |
| Red Hat Enterprise Linux 9 | galera | Fixed | 0:26.4.11-1.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-backup | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-common | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-devel | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-embedded | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-embedded-devel | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-errmsg | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-gssapi-server | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-oqgraph-engine | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-pam | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-server | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-server-galera | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-server-utils | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mariadb-test | Fixed | 3:10.5.16-2.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 9 | mysql-selinux | Fixed | 0:1.0.5-1.el9_0 | RHSA-2022:5948 |
| Red Hat Enterprise Linux 8 | Judy | Fixed | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | galera | Fixed | 0:25.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:6443 |
| Red Hat Enterprise Linux 8 | mariadb-backup | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:6443 |
| Red Hat Enterprise Linux 8 | mariadb-common | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:6443 |
| Red Hat Enterprise Linux 8 | mariadb-devel | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:6443 |
| Red Hat Enterprise Linux 8 | mariadb-embedded | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-embedded-devel | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-errmsg | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-gssapi-server | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-oqgraph-engine | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:6443 |
| Red Hat Enterprise Linux 8 | mariadb-pam | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-server | Fixed | 3:10.5.16-2.module+el8.6.0+15639+405b7427 | RHSA-2022:6443 |
| Red Hat Enterprise Linux 8 | mariadb-server-galera | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-server-utils | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 8 | mariadb-test | Fixed | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:5826 |
| Red Hat Enterprise Linux 7 | mariadb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-bench | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-embedded | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-embedded-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | mariadb-test | Will not fix Out of support scope | ||
| AlmaLinux 9 | mariadb | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-backup | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-common | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-devel | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-embedded | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-embedded-devel | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-errmsg | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-gssapi-server | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-oqgraph-engine | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-pam | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-server | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-server-galera | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-server-utils | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 9 | mariadb-test | Fixed | 3:10.5.16-2.el9_0 | ALSA-2022:5948 |
| AlmaLinux 8 | Judy | Fixed | 1.0.5-18.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | galera | Fixed | 25.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-backup | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-common | Fixed | 3:10.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb-devel | Fixed | 3:10.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb-embedded | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-embedded-devel | Fixed | 3:10.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb-errmsg | Fixed | 3:10.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb-gssapi-server | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-oqgraph-engine | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-pam | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb-server | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-server-galera | Fixed | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | ALSA-2022:6443 |
| AlmaLinux 8 | mariadb-server-utils | Fixed | 3:10.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| AlmaLinux 8 | mariadb-test | Fixed | 3:10.3.35-1.module_el8.6.0+3265+230ed96b | ALSA-2022:5826 |
| Rocky Linux 9 | galera | Fixed | 0:26.4.11-1.el9_0 | RLSA-2022:5948 |
| Rocky Linux 9 | mariadb | Fixed | 3:10.5.16-2.el9_0 | RLSA-2022:5948 |
| Rocky Linux 9 | mysql-selinux | Fixed | 0:1.0.5-1.el9_0 | RLSA-2022:5948 |
| Rocky Linux 8 | Judy | Fixed | 0:1.0.5-18.module+el8.4.0+427+adf35707 | RLSA-2022:5826 |
| Rocky Linux 8 | galera | Fixed | 0:26.4.11-1.module+el8.6.0+995+5ac2a483 | RLSA-2022:6443 |
| Rocky Linux 8 | mariadb | Fixed | 3:10.5.16-2.module+el8.6.0+995+5ac2a483 | RLSA-2022:6443 |
| Alpine Linux 3.24 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.23 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.22 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.21 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.20 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.19 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.18 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.17 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.16 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.15 | mariadb | Fixed | 10.6.7-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.14 | mariadb | Fixed | 10.5.15-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.13 | mariadb | Fixed | 10.5.15-r0 | ALPINE-CVE-2022-24051 |
| Alpine Linux 3.12 | mariadb | Fixed | 10.4.24-r0 | ALPINE-CVE-2022-24051 |
What the vendor says
As published in the CVE record by zdi, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- MariaDB: affected: 10.6.5
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://mariadb.com/kb/en/security/
- https://www.zerodayinitiative.com/advisories/ZDI-22-318/
- https://security.netapp.com/advisory/ntap-20220318-0004/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.