Privilege Escalation Vulnerability in MariaDB: CVE-2022-24048

mariadb Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2022-24048: MariaDB CONNECT Storage Engine Stack-based Buffer Overflow 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 Your last release was probably never penetration tested 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 web applications and data storage. It is known for its high performance, scalability, and robust feature set, including support for various storage engines. However, like any software, it is susceptible to vulnerabilities that can compromise its security. CVE-2022-24048 specifically affects the CONNECT Storage Engine, allowing local attackers to escalate privileges under certain conditions.

Vulnerability Detail

The vulnerability identified as CVE-2022-24048 is a stack-based buffer overflow that arises from improper validation of user-supplied data length during SQL query processing. This flaw can be exploited by authenticated users to escalate their privileges, potentially allowing them to execute arbitrary code within the context of the service account. The ramifications of this vulnerability are significant, 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, restrict access to the MariaDB service to trusted users only, and ensure that all users have the minimum required privileges. Additionally, consider disabling the CONNECT Storage Engine if it is not needed for your application.

Conclusion

CVE-2022-24048 is a critical vulnerability in MariaDB that can lead to privilege escalation. It is crucial for users to update their installations to the patched versions to mitigate the risk. Additionally, employing workarounds can provide temporary relief while waiting for updates.

See every vulnerability recorded for mariadb →

Share this vulnerability

FAQ

CVE-2022-24048 is a vulnerability in MariaDB that allows local attackers to escalate privileges due to a stack-based buffer overflow.

You can check your MariaDB version against the patched versions mentioned in the 'how_to_fix' section. Additionally, you can use Vulert to monitor for vulnerabilities.

If exploited, this vulnerability can allow attackers to execute arbitrary code, leading to unauthorized access and manipulation of data.

Yes, restricting access to trusted users and disabling unnecessary features can help mitigate the risk until an update is applied.

Vulert is a tool that monitors open-source vulnerabilities in your software using a manifest file. It provides real-time alerts and can help you determine if your application is affected by vulnerabilities like CVE-2022-24048.

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