CVE-2022-24048
Reported by zdi · Published February 18, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mariadb-min | Bitnami | 10.8.0, 10.7.2, 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42 |
| mariadb105-oqgraph-engine | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-server | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb | Bitnami | 10.8.1, 10.7.2, 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42 |
| mariadb105-sphinx-engine | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-cracklib-password-check | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-test | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-gssapi-server | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-connect-engine | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mysql-client | Bitnami | 10.8.1, 10.7.2, 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42 |
| mariadb105-common | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-devel | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| MariaDB | MariaDB | 10.6.5 |
| amazon:2023 | mariadb105-oqgraph-engine | 0 |
| amazon:2023 | mariadb105-server | 0 |
| amazon:2023 | mariadb105-sphinx-engine | 0 |
| amazon:2023 | mariadb105-cracklib-password-check | 0 |
| amazon:2023 | mariadb105-test | 0 |
| amazon:2023 | mariadb105-gssapi-server | 0 |
| amazon:2023 | mariadb105-connect-engine | 0 |
| amazon:2023 | mariadb105-common | 0 |
| amazon:2023 | mariadb105-devel | 0 |
| amazon:2023 | mariadb105-pam | 0 |
| amazon:2023 | mariadb105 | 0 |
| MariaDB | MariaDB | 10.6.5 |
| amazon:2023 | mariadb105-server-utils | 0 |
| amazon:2023 | mariadb105-errmsg | 0 |
| amazon:2023 | mariadb105-backup | 0 |
| alpine | mariadb | 0, 0, 0 |
| amazon:2023 | mariadb105-rocksdb-engine | 0 |
Timeline
- Feb 9, 2022 CVE Published
- Feb 18, 2022 PoC Published
- Feb 19, 2022 EPSS Score (30 in total, the first dated here)
- Sep 27, 2023 CVE Updated
- Mar 17, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 17, 2026 Security Advisory (8 in total, the first dated here)
- Jul 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-24048
vulnetix vdb fixes CVE-2022-24048
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24048/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- FEDORA-2022-263f7cc483 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-03350936ee vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-5cfe372ab7 vendor-advisoryx_refsource_FEDORA