CVE-2022-24048: MariaDB - Buffer Overflow
- Cve: CVE-2022-24048
- Name: MariaDB - Buffer Overflow
- 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.
- Impact: Local attackers can escalate privileges and execute arbitrary code on affected MariaDB installations.
- Remediation: Update to the latest version of MariaDB that addresses this vulnerability or apply security patches provided by MariaDB.
- Vulnerability type: buffer_overflow
- Vulnerability impact: privilege_escalation, remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs to authenticate to the MariaDB server
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00694
- Epss percentile: 0.53894
- Assignee: [email protected]
- Published at: 2022-02-18T20:15:17Z
- Age in days: 1740
- Modified at: 2026-06-17T04:31:12Z
- Patch available: yes
- References total: 6
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24048
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-121 | Stack-based Buffer Overflow |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mariadb:mariadb | = 10.8.0; >= 10.7.0, < 10.7.2; >= 10.6.0, < 10.6.6; >= 10.5.0, < 10.5.14; >= 10.4.0, < 10.4.23; >= 10.3.0, < 10.3.33; >= 10.2.0, < 10.2.42 | no | nvd | /v1/products/mariadb/mariadb |
| fedoraproject:fedora | = 36, = 35, = 34 | no | nvd | /v1/products/fedoraproject/fedora |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports