Global Buffer Overflow in MariaDB Server v10.7 and Below

mariadb Updated 02 Oct 2025

Summary

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

CVE-2022-27387: MariaDB Server v10.7 and below was discovered to contain a global buffer overflow in the component decimal_bin_size, which is exploited via specially crafted SQL statements. Affects mariadb across 2 version ranges.

< 10.4.25-r0 >= 9664240c948a92c22ccda0e1f5a420eb776ddcb1, < 0ba528fe56f6c637d9fbc9d177a62610038fd519

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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

MariaDB Server is an open-source relational database management system that is a drop-in replacement for MySQL. It provides a wide range of features and is widely used in various applications. However, versions 10.7 and below of MariaDB Server are vulnerable to a global buffer overflow in the component decimal_bin_size. This vulnerability can be exploited through specially crafted SQL statements.

Vulnerability Detail

The global buffer overflow vulnerability in MariaDB Server v10.7 and below occurs in the decimal_bin_size component. Attackers can exploit this vulnerability by sending specially crafted SQL statements to the server. If successful, this can lead to arbitrary code execution or denial of service. 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

There is no known workaround for this vulnerability. It is essential to update MariaDB Server to the fixed versions mentioned above.

Conclusion

In conclusion, MariaDB Server versions 10.7 and below are vulnerable to a global buffer overflow in the decimal_bin_size component. It is crucial to update to the fixed versions mentioned above to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mariadb →

Share this vulnerability

FAQ

MariaDB Server is an open-source relational database management system and a drop-in replacement for MySQL.

Versions 10.7 and below of MariaDB Server are affected by this vulnerability.

The vulnerability can be exploited by sending specially crafted SQL statements to the server.

Successful exploitation of this vulnerability can lead to arbitrary code execution or denial of service.

The CVSS score of this vulnerability 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