Denial of Service Vulnerability in MariaDB Server: CVE-2022-27379
Summary
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 ↓
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 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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for mariadb.