CVE-2022-24052
Reported by zdi · Published February 18, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mariadb105-oqgraph-engine | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-gssapi-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-rocksdb-engine | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-connect-engine | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb105-backup | Amazon Linux | 3:10.5.16-1.amzn2023.0.7 |
| mariadb | mariadb | 10.7.2, 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42 |
| mariadb-min | Bitnami | 10.8.0, 10.7.2, 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42 |
| mysql-client | Bitnami | 10.8.1, 10.7.2, 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| MariaDB | MariaDB | 10.6.5 |
| amazon:2023 | mariadb105-oqgraph-engine | 0 |
| amazon:2023 | mariadb105-gssapi-server | 0 |
| amazon:2023 | mariadb105-rocksdb-engine | 0 |
| amazon:2023 | mariadb105-connect-engine | 0 |
| amazon:2023 | mariadb105-backup | 0 |
| MariaDB | MariaDB | 10.6.5 |
| amazon:2023 | mariadb105-sphinx-engine | 0 |
| amazon:2023 | mariadb105-devel | 0 |
| amazon:2023 | mariadb105-pam | 0 |
| amazon:2023 | mariadb105-cracklib-password-check | 0 |
| amazon:2023 | mariadb105-test | 0 |
| amazon:2023 | mariadb105 | 0 |
| amazon:2023 | mariadb105-server | 0 |
| alpine | mariadb | 0, 0, 0 |
| amazon:2023 | mariadb105-server-utils | 0 |
| amazon:2023 | mariadb105-errmsg | 0 |
| amazon:2023 | mariadb105-common | 0 |
Timeline
- Feb 9, 2022 CVE Published
- Feb 18, 2022 PoC Published
- Feb 19, 2022 EPSS Score (30 in total, the first dated here)
- 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
- Sep 20, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-24052
vulnetix vdb fixes CVE-2022-24052
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-24052/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