CVE-2022-31621
MariaDB Server vulnerability analysis and mitigation

Overview

CVE-2022-31621 affects MariaDB Server versions before 10.7, specifically related to a Denial of Service vulnerability in the extra/mariabackup/ds_xbstream.cc component. The vulnerability was discovered and reported in September 2021 (MariaDB JIRA).

Technical details

The vulnerability stems from an improper locking mechanism in the ds_xbstream.cc file, where the stream_ctxt->mutex lock is not released correctly when stream_ctxt->dest_file is NULL in the xbstream_open function. This implementation flaw could lead to a deadlock situation (GitHub Commit). The vulnerability has been assigned a CVSS score of 5.5 (Medium) with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NetApp Security).

Impact

When successfully exploited, this vulnerability can lead to a Denial of Service (DoS) condition in the affected MariaDB Server installations (NetApp Security).

Mitigation and workarounds

The vulnerability has been fixed in MariaDB version 10.7 and subsequent releases. Users running affected versions should upgrade to a patched version to mitigate this security issue (NVD).

Additional resources


SourceThis report was generated using AI

Related MariaDB Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13699HIGH7
  • MariaDB ServerMariaDB Server
  • mariadb:10.3::mariadb-common
NoYesDec 23, 2025
CVE-2025-30722MEDIUM6.8
  • MySQLMySQL
  • mariadb:10.11::mariadb-oqgraph-engine
NoYesApr 15, 2025
CVE-2025-30693MEDIUM5.5
  • MySQLMySQL
  • mariadb-server
NoYesApr 15, 2025
CVE-2023-52971MEDIUM4.9
  • MariaDB ServerMariaDB Server
  • mariadb-10.5
NoYesMar 08, 2025
CVE-2023-52970MEDIUM4.9
  • MariaDB ServerMariaDB Server
  • mariadb105-gssapi-server-debuginfo
NoYesMar 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management