Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-24048

mariadb: lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer

Overview

Published
18 Feb 2022
Modified
17 Jun 2026
High CVE
3 Registry packages
99 OS packages
11 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

7.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-121

Affected packages · 3

Packages affected by CVE-2022-24048
EcosystemPackageVulnerableFixed 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+2 more 10.2.4210.3.3310.4.2310.5.1410.6.6
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+2 more 10.2.4210.3.3310.4.2310.5.1410.6.6
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+2 more 10.2.4210.3.3310.4.2310.5.1410.6.6

Open a package to see all its vulnerabilities.

Operating systems · 50 fixes

Oracle Linux 2 releases · 4 packages

fixed 6
judy galera mariadb mysql-selinux
Oracle Linux fixes for CVE-2022-24048
ReleasePackageFixed in
8 judy 1.0.5-18.0.1.module+el8.3.0+9616+7a81225f
8 galera 26.4.11-1.module+el8.6.0+20717+9b4a4c6e
8 mariadb +13 3:10.5.16-2.module+el8.6.0+20717+9b4a4c6e
9 mysql-selinux 1.0.5-1.el9_0
9 galera 26.4.11-1.0.1.el9_0
9 mariadb +13 3:10.5.16-2.el9_0

Red Hat 4 releases · 6 packages

eol 1 fixed 14
mariadb rh-mariadb103-mariadb rh-mariadb105-mariadb judy galera mysql-selinux
Red Hat fixes for CVE-2022-24048
ReleasePackageFixed inAdvisory
7 mariadb +12 eol —
7 rh-mariadb103-mariadb +18 3:10.3.35-1.el7 RHSA-2022:6306
7 rh-mariadb105-mariadb +20 3:10.5.16-2.el7 RHSA-2022:5759
8 (mariadb:10.3) judy 0:1.0.5-18.module+el8+2765+cfa4f87b RHSA-2022:6443
8 (mariadb:10.3) galera 0:25.3.35-1.module+el8.6.0+15949+4ba4ec26 RHSA-2022:6443
8 (mariadb:10.3) mariadb +12 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 RHSA-2022:6443

9 more rows

SUSE Linux Enterprise 2 releases · 2 packages

fixed 2
mariadb libmariadbd-devel
SUSE Linux Enterprise fixes for CVE-2022-24048
ReleasePackageFixed inAdvisory
12.5 mariadb +3 10.2.43-3.47.1 SUSE-SU-2022:0782-1
15.4 libmariadbd-devel +5 10.6.8-150400.3.7.1 SUSE-SU-2022:2561-1

alma 2 releases · 4 packages

fixed 5
judy galera mariadb mariadb-pam
alma fixes for CVE-2022-24048
ReleasePackageFixed in
8 (mariadb:10.5) judy 1.0.5-18.module_el8.6.0+3072+3c630e87
8 (mariadb:10.5) galera 25.3.35-1.module_el8.6.0+3265+230ed96b
8 (mariadb:10.5) mariadb +12 3:10.3.35-1.module_el8.6.0+3265+230ed96b
8 (mariadb:10.5) mariadb-pam 3:10.5.16-2.module_el8.6.0+3072+3c630e87
9 mariadb +13 3:10.5.16-2.el9_0

alpine 4 releases · 1 package

fixed 4
mariadb
alpine fixes for CVE-2022-24048
ReleasePackageFixed in
3.22 mariadb 10.6.7-r0
3.23 mariadb 10.6.7-r0
3.24 mariadb 10.6.7-r0
edge mariadb 10.6.7-r0

amazon linux 1 release · 1 package

fixed 1
mariadb105
amazon linux fixes for CVE-2022-24048
ReleasePackageFixed in
2023 mariadb105 +27 3:10.5.16-1.amzn2023.0.7

debian 2 releases · 2 packages

fixed 2
mariadb-10-3 mariadb-10-5
debian fixes for CVE-2022-24048
ReleasePackageFixed in
10 mariadb-10-3 1:10.3.34-0+deb10u1
11 mariadb-10-5 1:10.5.15-0+deb11u1

openSUSE 1 release · 1 package

fixed 1
libmariadbd-devel
openSUSE fixes for CVE-2022-24048
ReleasePackageFixed inAdvisory
Tumbleweed libmariadbd-devel +9 10.7.3-1.1 openSUSE-SU-2024:11867-1

rocky 4 releases · 4 packages

fixed 11
galera mariadb judy mysql-selinux
rocky fixes for CVE-2022-24048
ReleasePackageFixed in
8 galera 26.4.11-1.module+el8.6.0+995+5ac2a483
8 mariadb +13 3:10.5.16-2.module+el8.6.0+995+5ac2a483
8 (mariadb:10.3) judy 1.0.5-18.module+el8.4.0+427+adf35707
8 (mariadb:10.3) galera 25.3.35-1.module+el8.6.0+1005+cdf19c22
8 (mariadb:10.3) mariadb +12 3:10.3.35-1.module+el8.6.0+1005+cdf19c22
8 (mariadb:10.5) judy 1.0.5-18.module+el8.4.0+427+adf35707

5 more rows

root.io debian 1 release · 1 package

fixed 1
rootio-mariadb-10-5
root.io debian fixes for CVE-2022-24048
ReleasePackageFixed in
11 rootio-mariadb-10-5 1:10.5.15-0+deb11u1

ubuntu 2 releases · 1 package

fixed 2
mariadb-10-3
ubuntu fixes for CVE-2022-24048
ReleasePackageFixed in
20.04 mariadb-10-3 1:10.3.34-0ubuntu0.20.04.1
20.04-ESM mariadb-10-3 1:10.3.34-0ubuntu0.20.04.1

References

Show all 122 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.