Critical Use-After-Free Vulnerability in MariaDB Affects Multiple Alpine Versions
Summary
ALPINE-CVE-2022-27455: MariaDB Server v10.6.3 and below was discovered to contain an use-after-free in the component my_wildcmp_8bit_impl at /strings/ctype-simple.c. Affects mariadb versions < 10.4.25-r0. Fixed in 10.4.25-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, reliability, and ease of use. However, certain versions of MariaDB have been found to be vulnerable to a use-after-free issue, which could lead to potential security risks if not addressed promptly.
Vulnerability Detail
The vulnerability identified as CVE-2022-27455 affects MariaDB Server versions up to 10.6.3. It is caused by a use-after-free error in the my_wildcmp_8bit_impl function located in the strings/ctype-simple.c file. This flaw can be exploited to cause application crashes or potentially allow an attacker to execute arbitrary code, leading to unauthorized access or data manipulation. The vulnerability has a CVSS score of 7.5, indicating a high severity level.
How To Fix
Minimum fixed version
10.4.25-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, users can limit access to the MariaDB server and monitor for unusual activity until the package is updated. Additionally, disabling features that rely on the affected function may reduce risk.
Conclusion
The use-after-free vulnerability in MariaDB (CVE-2022-27455) poses significant risks to applications using affected versions. It is crucial for users to update to the latest patched versions to safeguard their systems against potential exploits.
See every vulnerability recorded for mariadb →
FAQ
CVE-2022-27455 is a use-after-free vulnerability in MariaDB that can lead to application crashes or arbitrary code execution.
MariaDB versions up to 10.6.3 are affected by this vulnerability.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Update your MariaDB package to the latest patched version as soon as possible to mitigate the vulnerability.
The CVSS score of CVE-2022-27455 is 7.5, indicating a high severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for mariadb.