Critical Use-After-Free Vulnerability in MariaDB Affects Multiple Alpine Versions

mariadb Updated 02 Oct 2025

Summary

14/04/2022
N/A
Yes i
High
7.5

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 ↓

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, 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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for mariadb.

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 →

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