SecurityContext

CVE-2022-24051: MariaDB - Privilege Escalation & Remote Code Execution

  • Cve: CVE-2022-24051
  • Name: MariaDB - Privilege Escalation & Remote Code Execution
  • Description: MariaDB CONNECT Storage Engine Format String 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 a user-supplied string before using it as a format specifier. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16193.
  • Impact: Authenticated local attackers can escalate privileges and execute arbitrary code within the service account context.
  • Remediation: Update to the latest MariaDB version where this issue is fixed or apply security patches addressing format string validation.
  • Vulnerability type: format_string
  • Vulnerability impact: privilege_escalation, remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs to be authenticated locally
  • 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.00752
  • Epss percentile: 0.55758
  • Assignee: [email protected]
  • Published at: 2022-02-18T20:15:17Z
  • 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-24051
  • 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

Cwe

IdName
CWE-134Use of Externally-Controlled Format String

Hackerone

  • Reports: 1
  • Rank: 516

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-318/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
  • Hackerone reports: 1
  • 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