Privilege Escalation Vulnerability in MariaDB: CVE-2022-24050

mariadb Updated 02 Oct 2025

Summary

18/02/2022
N/A
Yes i
High
7.8

ALPINE-CVE-2022-24050: MariaDB CONNECT Storage Engine Use-After-Free Privilege Escalation Vulnerability. Affects mariadb versions < 10.4.24-r0. Fixed in 10.4.24-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MariaDB is an open-source relational database management system that is widely used for managing and organizing data. It is known for its high performance, scalability, and compatibility with MySQL. However, it is susceptible to various security vulnerabilities, including CVE-2022-24050, which allows local attackers to escalate privileges on affected installations.

Vulnerability Detail

The CVE-2022-24050 vulnerability is a use-after-free privilege escalation issue found in the MariaDB CONNECT Storage Engine. This flaw arises from the lack of validation of an object's existence before performing operations on it, allowing authenticated attackers to escalate privileges and execute arbitrary code within the context of the service account. The vulnerability is particularly concerning as it can lead to unauthorized access and manipulation of sensitive data.

How To Fix

Minimum fixed version

10.4.24-r0

This is the first release that contains the fix.

sudo apk add --upgrade mariadb

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider restricting access to the MariaDB service to trusted users only, and ensure that all users have the least privileges necessary to perform their tasks.

Conclusion

CVE-2022-24050 is a significant privilege escalation vulnerability affecting MariaDB installations. It is crucial for users to update their MariaDB packages to the patched versions to mitigate the risk of exploitation. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain the security of your applications.

See every vulnerability recorded for mariadb →

Share this vulnerability

FAQ

CVE-2022-24050 is a vulnerability in the MariaDB CONNECT Storage Engine that allows local attackers to escalate privileges.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2022-24050 is 7.8, indicating a high severity level.

Yes, authentication is required to exploit CVE-2022-24050.

Exploitation of this vulnerability can lead to unauthorized privilege escalation, allowing attackers to execute arbitrary code and potentially compromise sensitive data.

Related vulnerabilities

Recent vulnerabilities recorded for mariadb.

How To Fix

Minimum fixed version

10.4.24-r0

This is the first release that contains the fix.

sudo apk add --upgrade mariadb

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback