Denial of Service Vulnerability in MariaDB Server: CVE-2022-27379

mariadb Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2022-27379: An issue in the component Arg_comparator::compare_real_fixed of MariaDB Server v10.6.2 and below was discovered to allow attackers to cause a Denial of Service (DoS) via specially crafted SQL statements. 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 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 web applications and data storage. It is a fork of MySQL and offers enhanced performance, security, and features. The vulnerability in question affects versions of MariaDB Server up to 10.6.2, allowing attackers to exploit specific SQL statements to cause a Denial of Service (DoS). This can lead to service interruptions and impact the availability of applications relying on the database.

Vulnerability Detail

The vulnerability, identified as CVE-2022-27379, originates from an issue in the Arg_comparator::compare_real_fixed component of MariaDB Server. It allows attackers to craft specially designed SQL statements that can trigger a Denial of Service (DoS). The ramifications of this vulnerability can be severe, as it may lead to application downtime and loss of service availability. The technical aspect involves the improper handling of certain SQL inputs, which can overwhelm the database server.

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 measure, you can restrict access to the database or implement input validation to filter out potentially harmful SQL statements until the package is updated. Additionally, consider using a web application firewall (WAF) to mitigate the risk of exploitation.

Conclusion

CVE-2022-27379 is a significant vulnerability in MariaDB Server that can lead to Denial of Service attacks. It is crucial for users to update their installations to the latest patched versions to mitigate the risks associated with this vulnerability. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.

See every vulnerability recorded for mariadb →

Share this vulnerability

FAQ

CVE-2022-27379 is a vulnerability in MariaDB Server that allows attackers to cause a Denial of Service (DoS) through specially crafted SQL statements.

The vulnerability affects MariaDB Server versions up to 10.6.2. Users are advised to upgrade to the patched versions.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing the manifest file. Visit Vulert Scanner to check your application without signup.

The CVSS score for CVE-2022-27379 is 7.5, indicating a high severity level.

If immediate updates are not feasible, implement input validation and restrict database access as a temporary workaround.

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