CVE-2022-24048: MariaDB CONNECT Storage Engine Stack-based Buffer Overflow Privilege Escalation Vulnerability

Published Feb 16, 2022
·
Updated

MariaDB CONNECT Storage Engine Stack-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 stack-based buffer. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account.

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

Other sources

MariaDB CONNECT Storage Engine Stack-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 stack-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-16191.

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:53 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 the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2022-24048.

2

What is the severity of CVE-2022-24048?

CVE-2022-24048 has a severity score of 7.8 (High).

3

Who is affected by CVE-2022-24048?

Users of MariaDB versions 10.2.0 to 10.7.2 are affected by CVE-2022-24048.

4

How can this vulnerability be exploited?

This vulnerability can be exploited by local attackers with authentication to escalate privileges on affected installations of MariaDB.

5

How do I fix CVE-2022-24048?

To fix CVE-2022-24048, update to a version of MariaDB that includes the fix, such as version 10.8.1.

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