CVE-2022-24051: MariaDB CONNECT Storage Engine Format String Privilege Escalation Vulnerability.

High CVSS 7.8

CVE id
CVE-2022-24051
Published
Last modified

Affected packages

PackageAffected versionsFixed in
MariaDB
Runtimes and servers
>= 10.2.0, < 10.2.42
>= 10.3.0, < 10.3.33
>= 10.4.0, < 10.4.23
>= 10.5.0, < 10.5.14
>= 10.6.0, < 10.6.6
>= 10.7.0, < 10.7.2
10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2

How to fix it

Upgrade MariaDB to the fixed release of the line you run: 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2.

mariadbd --version
  • Install the patched MariaDB release of your series (the mariadb image tag or your packages) and restart the server.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

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.

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.