BreachSpiderVerified, not vibes

CVE-2022-31622 in Mariadb

Medium 5.5

MariaDB Server before 10.7 is vulnerable to Denial of Service. In extra/mariabackup/ds_compress.cc, when an error occurs (pthread_create returns a nonzero value) while executing the method create_worker_threads, the held lock is not released correctly, which allows local users to trigger a denial of service due to t...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.5
EPSS0.3%
EPSS percentile12th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mariadb Mariadb < 10.2.42 ≥ 10.3.0, < 10.3.33 ≥ 10.4.0, < 10.4.23 ≥ 10.5.0, < 10.5.14 ≥ 10.6.0, < 10.6.6 ≥ 10.7.0, < 10.7.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

MariaDB Server before 10.7 is vulnerable to Denial of Service. In extra/mariabackup/ds_compress.cc, when an error occurs (pthread_create returns a nonzero value) while executing the method create_worker_threads, the held lock is not released correctly, which allows local users to trigger a denial of service due to the deadlock. Note: The vendor argues this is just an improper locking bug and not a vulnerability with adverse effects.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-31622
BreachSpider IDBS-2022-GLOBAL-068367-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2022-05-25
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-667: CWE-667

Related attack patterns (CAPEC)

CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-667

CAPEC-25 Forced Deadlock via CWE-667

CAPEC-26 Leveraging Race Conditions via CWE-667

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

MariaDB Server versions before 10.7 are vulnerable to a Denial of Service (DoS) due to improper handling of a lock in the create_worker_threads method in ds_compress.cc, leading to a deadlock when pthread_create fails.

The vulnerability occurs in the extra/mariabackup/ds_compress.cc file where, if pthread_create returns a nonzero value, the lock is not released properly. This can be exploited by local users to cause a deadlock, resulting in a Denial of Service.

Questions

What is CVE-2022-31622?

MariaDB Server versions before 10.7 are vulnerable to a Denial of Service (DoS) due to improper handling of a lock in the create_worker_threads method in ds_compress.cc, leading to a deadlock when pthread_create fails.

What is the CVSS score for CVE-2022-31622?

CVE-2022-31622 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.3%.

Is CVE-2022-31622 actively exploited?

No confirmed active exploitation of CVE-2022-31622 as of 2026-09-25.

How do I remediate CVE-2022-31622?

Priority: MEDIUM.

What systems are affected by CVE-2022-31622?

CVE-2022-31622 affects Mariadb Mariadb.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mariadb","product":"Mariadb","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.