SecurityContext

CVE-2022-24052: MariaDB - Buffer Overflow

  • Cve: CVE-2022-24052
  • Name: MariaDB - Buffer Overflow
  • Description: 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.
  • Impact: Local attackers can escalate privileges and execute arbitrary code within the service account context.
  • Remediation: Update to the latest version of MariaDB where this issue is fixed.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: privilege_escalation, remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs to authenticate to the database
  • 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:18Z
  • Age in days: 1740
  • Modified at: 2026-06-17T04:31:13Z
  • Patch available: yes
  • References total: 6
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24052
  • 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

IdName
CWE-122Heap-based Buffer Overflow

References

Same in every row:

  • Source: nvd
UrlTags
https://mariadb.com/kb/en/security/Patch, Vendor Advisory
https://security.netapp.com/advisory/ntap-20220318-0004/Third Party Advisory
https://www.zerodayinitiative.com/advisories/ZDI-22-367/Third Party Advisory, VDB Entry
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/

Products

ProductAffectedPlatform boundSourcesUrl
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.42nonvd/v1/products/mariadb/mariadb
fedoraproject:fedora= 36, = 35, = 34nonvd/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