Privilege Escalation Vulnerability in MariaDB: CVE-2022-24048
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for mariadb.