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
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 2023 | mariadb105 +27 | 3:10.5.16-1.amzn2023.0.7 |
debian 2 releases · 2 packages
| Release | Package | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libmariadbd-devel +9 | 10.7.3-1.1 | openSUSE-SU-2024:11867-1 |
rocky 4 releases · 4 packages
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-mariadb-10-5 | 1:10.5.15-0+deb11u1 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed 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
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:5948
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-24048
- bugzilla.redhat.com https://bugzilla.redhat.com/2049302
- bugzilla.redhat.com https://bugzilla.redhat.com/2050017
- bugzilla.redhat.com https://bugzilla.redhat.com/2050022
- bugzilla.redhat.com https://bugzilla.redhat.com/2050024
- bugzilla.redhat.com https://bugzilla.redhat.com/2050026
- bugzilla.redhat.com https://bugzilla.redhat.com/2050032
- bugzilla.redhat.com https://bugzilla.redhat.com/2050034
- bugzilla.redhat.com https://bugzilla.redhat.com/2068211
Show all 122 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2068233
- bugzilla.redhat.com https://bugzilla.redhat.com/2068234
- bugzilla.redhat.com https://bugzilla.redhat.com/2069833
- bugzilla.redhat.com https://bugzilla.redhat.com/2074817
- bugzilla.redhat.com https://bugzilla.redhat.com/2074947
- bugzilla.redhat.com https://bugzilla.redhat.com/2074949
- bugzilla.redhat.com https://bugzilla.redhat.com/2074951
- bugzilla.redhat.com https://bugzilla.redhat.com/2074966
- bugzilla.redhat.com https://bugzilla.redhat.com/2074981
- bugzilla.redhat.com https://bugzilla.redhat.com/2074987
- bugzilla.redhat.com https://bugzilla.redhat.com/2074996
- bugzilla.redhat.com https://bugzilla.redhat.com/2074999
- bugzilla.redhat.com https://bugzilla.redhat.com/2075005
- bugzilla.redhat.com https://bugzilla.redhat.com/2075006
- bugzilla.redhat.com https://bugzilla.redhat.com/2075691
- bugzilla.redhat.com https://bugzilla.redhat.com/2075692
- bugzilla.redhat.com https://bugzilla.redhat.com/2075693
- bugzilla.redhat.com https://bugzilla.redhat.com/2075694
- bugzilla.redhat.com https://bugzilla.redhat.com/2075695
- bugzilla.redhat.com https://bugzilla.redhat.com/2075696
- bugzilla.redhat.com https://bugzilla.redhat.com/2075697
- bugzilla.redhat.com https://bugzilla.redhat.com/2075699
- bugzilla.redhat.com https://bugzilla.redhat.com/2075700
- bugzilla.redhat.com https://bugzilla.redhat.com/2075701
- bugzilla.redhat.com https://bugzilla.redhat.com/2076144
- bugzilla.redhat.com https://bugzilla.redhat.com/2076145
- bugzilla.redhat.com https://bugzilla.redhat.com/2092354
- bugzilla.redhat.com https://bugzilla.redhat.com/2092360
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2049302
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050017
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050022
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050024
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050026
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050032
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050034
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2068211
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2068233
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2068234
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2069833
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074817
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074947
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074949
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074951
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074966
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074981
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074996
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074999
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075005
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075006
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075691
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075693
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075694
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075695
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075697
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075700
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2076145
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2082644
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2092354
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2092360
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104425
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104431
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104434
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2106008
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46659
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46661
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46663
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46664
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46665
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46668
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46669
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21427
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21595
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24048
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24050
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24051
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24052
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27376
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27377
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27378
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27379
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27380
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27381
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27383
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27384
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27386
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27387
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27445
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27447
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27448
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27449
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27452
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27456
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27458
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31622
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31623
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32083
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32085
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32087
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32088
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2022-5948.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:6443
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-24048.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-6443.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/
- mariadb.com https://mariadb.com/kb/en/security/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-24048
- security.netapp.com https://security.netapp.com/advisory/ntap-20220318-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-5305-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-24048
- www.zerodayinitiative.com https://www.zerodayinitiative.com/advisories/ZDI-22-363/
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.