cve.bz

CVE-2022-24052 Heap-based Buffer Overflow

7.8 highEPSS 0.7%Fix available

High (7.8). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
MariaDB CONNECT Storage Engine Heap-based Buffer Overflow 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 the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16190.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-24052 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24052?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24052?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-24052 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mariadb:mariadbfrom 10.2.0 before 10.2.42
mariadb:mariadbfrom 10.3.0 before 10.3.33
mariadb:mariadbfrom 10.4.0 before 10.4.23
mariadb:mariadbfrom 10.5.0 before 10.5.14
mariadb:mariadbfrom 10.6.0 before 10.6.6
mariadb:mariadbfrom 10.7.0 before 10.7.2
mariadb:mariadb10.8.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11mariadb-10.51:10.5.15-0+deb11u1DEBIAN-CVE-2022-24052
Ubuntu16.04:LTSmariadb-10.0no fix listedUBUNTU-CVE-2022-24052
Ubuntu18.04:LTSmariadb-10.1no fix listedUBUNTU-CVE-2022-24052
Ubuntu20.04:LTSmariadb-10.31:10.3.34-0ubuntu0.20.04.1UBUNTU-CVE-2022-24052 USN-5305-1
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2022:6443
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2022:5826
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:25.3.35-1.module+el8.6.0+15949+4ba4ec26RHSA-2022:6443
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.11-1.module+el8.6.0+15639+405b7427RHSA-2022:5826
Red Hatenterprise_linux:8::appstreammariadb, mariadb-pam, mariadb-test and 21 more3:10.5.16-2.module+el8.6.0+15639+405b7427RHSA-2022:5826
Red Hatenterprise_linux:8::appstreammariadb, mariadb-test, mariadb-devel and 19 more3:10.3.35-1.module+el8.6.0+15949+4ba4ec26RHSA-2022:6443
Red Hatenterprise_linux:9::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.11-1.el9_0RHSA-2022:5948
Red Hatenterprise_linux:9::appstreammariadb, mariadb-pam, mariadb-backup and 18 more3:10.5.16-2.el9_0RHSA-2022:5948
Red Hatenterprise_linux:9::appstreammysql-selinux0:1.0.5-1.el9_0RHSA-2022:5948
Red Hatenterprise_linux:9::crbmariadb-test, mariadb-devel, mariadb-debuginfo and 10 more3:10.5.16-2.el9_0RHSA-2022:5948
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2023:6821
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.14-1.module+el8.4.0+20291+fd32d29cRHSA-2023:6821
3 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moremariadb10.2.43-3.51.1SUSE-SU-2022:0725-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 moremariadb10.4.24-3.25.1SUSE-SU-2022:0726-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1mariadb10410.4.30-150100.3.5.10SUSE-RU-2023:3956-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1python-mysqlclient1.4.6-150100.3.3.7SUSE-RU-2023:3956-1
SUSELinux Enterprise Module for Server Applications 15 SP3mariadb10.5.15-150300.3.15.1SUSE-SU-2022:0731-1
SUSELinux Enterprise Module for Server Applications 15 SP4mariadb10.6.8-150400.3.7.1SUSE-SU-2022:2561-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 3 moremariadb10.2.43-3.47.1SUSE-SU-2022:0782-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5lz41.8.0-3.5.2SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb-connector-c3.1.22-2.35.1SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb10410.4.30-8.5.46SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5python-mysqlclient1.3.14-8.9.2SUSE-RU-2023:4991-1
openSUSELeap 15.3mariadb10.5.15-150300.3.15.1openSUSE-SU-2022:0731-1
openSUSELeap 15.4mariadb10.5.15-150300.3.15.1SUSE-SU-2022:0731-2
openSUSELeap 15.4mariadb10.6.8-150400.3.7.1SUSE-SU-2022:2561-1
openSUSETumbleweedmariadb10.7.3-1.1openSUSE-SU-2024:11867-1
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3072+3c630e87ALSA-2022:5826 ALSA-2022:6443
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3139+3c630e87ALSA-2022:6443
AlmaLinux8galera25.3.35-1.module_el8.6.0+3265+230ed96bALSA-2022:6443
AlmaLinux8galera26.4.11-1.module_el8.6.0+3072+3c630e87ALSA-2022:5826
AlmaLinux8mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.16-2.module_el8.6.0+3072+3c630e87ALSA-2022:5826
AlmaLinux8mariadb, mariadb-test, mariadb-devel and 10 more3:10.3.35-1.module_el8.6.0+3265+230ed96bALSA-2022:6443
AlmaLinux9mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.16-2.el9_0ALSA-2022:5948
Rocky Linux8Judy0:1.0.5-18.module+el8.4.0+427+adf35707RLSA-2022:5826 RLSA-2022:6443
Rocky Linux8galera0:25.3.35-1.module+el8.6.0+1005+cdf19c22RLSA-2022:6443
Rocky Linux8galera0:26.4.11-1.module+el8.6.0+995+5ac2a483RLSA-2022:5826
Rocky Linux8mariadb3:10.3.35-1.module+el8.6.0+1005+cdf19c22RLSA-2022:6443
Rocky Linux8mariadb3:10.5.16-2.module+el8.6.0+995+5ac2a483RLSA-2022:5826
Rocky Linux9galera0:26.4.11-1.el9_0RLSA-2022:5948
Rocky Linux9mariadb3:10.5.16-2.el9_0RLSA-2022:5948
Rocky Linux9mysql-selinux0:1.0.5-1.el9_0RLSA-2022:5948
Alpinev3.12mariadb10.4.24-r0ALPINE-CVE-2022-24052
Alpinev3.13, v3.14mariadb10.5.15-r0ALPINE-CVE-2022-24052
Alpinev3.15, v3.16, v3.17 and 7 moremariadb10.6.7-r0ALPINE-CVE-2022-24052
Azure Linux2mariadb10.6.7-1AZL-8667

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw has been rated as Moderate impact because although privilege escalation is possible, the attack requires the attacker to be authenticated and have local access to MariaDB, and is constrained to the privileges of the service account.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mariadb:10.5-8060020220614163302.ad008a3aFixed 2022-08-02RHSA-2022:5826
Red Hat Enterprise Linux 8mariadb:10.3-8060020220715055054.ad008a3aFixed 2022-09-13RHSA-2022:6443
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportmariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicemariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsmariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 9mariadb-3:10.5.16-2.el9_0Fixed 2022-08-09RHSA-2022:5948
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb105-mariadb-3:10.5.16-2.el7Fixed 2022-07-28RHSA-2022:5759
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb103-mariadb-3:10.3.35-1.el7Fixed 2022-09-01RHSA-2022:6306
Red Hat Enterprise Linux 7mariadbOut of support scope
Red Hat JBoss Core ServicesmariadbNot affected
Red Hat OpenStack Platform 13 (Queens)mariadbOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-24052.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON