CVE-2022-24052: MariaDB CONNECT Storage Engine Heap-based Buffer Overflow Privilege Escalation Vulnerability

Published Feb 16, 2022
·
Updated

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.

References: https://mariadb.com/kb/en/security/ https://www.zerodayinitiative.com/advisories/ZDI-22-367/ https://security.netapp.com/advisory/ntap-20220318-0004/

Other sources

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.

MITRE

Affected Software

17 affected componentsFixes available
redhat/mariadb<10.8.1
10.8.1
redhat/mariadb<10.7.2
10.7.2
redhat/mariadb<10.6.6
10.6.6
redhat/mariadb<10.5.14
10.5.14
redhat/mariadb<10.4.23
10.4.23
redhat/mariadb<10.3.33
10.3.33
redhat/mariadb<10.2.42
10.2.42
MariaDB MariaDB>=10.2.0<10.2.42
MariaDB MariaDB>=10.3.0<10.3.33
MariaDB MariaDB>=10.4.0<10.4.23
MariaDB MariaDB>=10.5.0<10.5.14
MariaDB MariaDB>=10.6.0<10.6.6
MariaDB MariaDB>=10.7.0<10.7.2
MariaDB MariaDB=10.8.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.8.1
  2. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.7.2
  3. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.6.6
  4. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.5.14
  5. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.4.23
  6. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.3.33
  7. Upgrade

    Upgrade redhat/mariadb to a version that resolves this vulnerability.

    Fixed in 10.2.42

Event History

Feb 16, 2022
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software
Feb 18, 2022
CVE Published
via MITRE·07:51 PM
Data Sourced
via MITRE·07:51 PM
DescriptionSeverityWeakness
Mar 24, 2022
Data Sourced
via Red Hat·05:26 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-24052?

CVE-2022-24052 is a vulnerability in the MariaDB CONNECT Storage Engine that allows local attackers to escalate privileges.

2

How severe is CVE-2022-24052?

CVE-2022-24052 has a severity rating of 7.8 (high).

3

Which versions of MariaDB are affected by CVE-2022-24052?

MariaDB versions 10.2.0 to 10.2.42, 10.3.0 to 10.3.33, 10.4.0 to 10.4.23, 10.5.0 to 10.5.14, 10.6.0 to 10.6.6, and 10.7.0 to 10.7.2 are affected by CVE-2022-24052.

4

What authentication is required to exploit CVE-2022-24052?

Authentication is required to exploit CVE-2022-24052.

5

How can I fix CVE-2022-24052?

To fix CVE-2022-24052, update MariaDB to version 10.8.1 or apply the appropriate remedy provided by the vendor (for example, Red Hat).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203