CVE-2022-24051 Privilege escalation in MariaDB

High 7.0 Published Updated

Local attackers with authentication can escalate privileges and execute arbitrary code via a format string vulnerability in MariaDB's CONNECT storage engine.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24051?

CVE-2022-24051 is a high-severity vulnerability in Fedoraproject Fedora, published on 18 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-134

Which versions are affected by CVE-2022-24051?

3 open source packages ship an affected version, including mariadb, mariadb-min and mysql-client. It affects 2 products.

PackageAffectedFixed in
mariadb BitnamiFrom 10.2.010.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1
mariadb-min BitnamiFrom 10.2.0 to 10.8.010.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2
mysql-client BitnamiFrom 10.2.010.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1

Products include Fedoraproject Fedora, Mariadb Mariadb.

How do I fix CVE-2022-24051?

Upgrade mariadb to a fixed version for your release line: 10.2.42, 10.3.33, 10.4.23 or 10.5.14.

Is CVE-2022-24051 being exploited?

There is no known exploitation of CVE-2022-24051 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2022-24051, AZL-8666, BIT-mariadb-2022-24051, BIT-mariadb-min-2022-24051, BIT-mysql-client-2022-24051, DEBIAN-CVE-2022-24051 and 2 more.

Is CVE-2022-24051 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free