CVEfocus › CVE database › CVE-2022-36021

CVE-2022-36021Redis string pattern matching can be abused to achieve Denial of Service

CVSS 5.5 MediumEPSS 0.4% (higher than 24% of CVEs)Published 2023-03-01Updated 2025-03-07Assigner: GitHub_M

Redis is an in-memory database that persists on disk. Authenticated users can use string matching commands (like `SCAN` or `KEYS`) with a specially crafted pattern to trigger a denial-of-service attack on Redis, causing it to hang and consume 100% CPU time. The problem is fixed in Redis versions 6.0.18, 6.2.11, 7.0.9.

CWE-407

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
5Fix pending
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04redisNot affected
vulnerable_code_not_present
Ubuntu 25.10redisNot affected
vulnerable_code_not_present
Ubuntu 24.04redisNot affected
vulnerable_code_not_present
Ubuntu 22.04redisFix pending5:6.0.16-1ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-36021
Ubuntu 20.04redisFix pending5:5.0.7-2ubuntu0.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-36021
Ubuntu 18.04redisFix pending5:4.0.9-1ubuntu0.2+esm4 (Ubuntu Pro)UBUNTU-CVE-2022-36021
Ubuntu 16.04redisFix pending2:3.0.6-1ubuntu0.4+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-36021
Ubuntu 14.04redisFix pending2:2.8.4-2ubuntu0.2+esm3 (Ubuntu Pro)UBUNTU-CVE-2022-36021
Debian 14redisFixed5:7.0.9-1DEBIAN-CVE-2022-36021
Debian 13redisFixed5:7.0.9-1DEBIAN-CVE-2022-36021
Debian 12redisFixed5:7.0.9-1DEBIAN-CVE-2022-36021
Red Hat Enterprise Linux 9redisNot affected
Red Hat Enterprise Linux 9redis-develNot affected
Red Hat Enterprise Linux 9redis-docNot affected
Red Hat Enterprise Linux 8redisFixed0:6.2.17-1.module+el8.10.0+22680+748527fdRHSA-2025:0595
Red Hat Enterprise Linux 8redis-develFixed0:6.2.17-1.module+el8.10.0+22680+748527fdRHSA-2025:0595
Red Hat Enterprise Linux 8redis-docFixed0:6.2.17-1.module+el8.10.0+22680+748527fdRHSA-2025:0595
AlmaLinux 8redisFixed6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux 8redis-develFixed6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux 8redis-docFixed6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
Rocky Linux 8redisFixed0:6.2.17-1.module+el8.10.0+1923+5b85c6a7RLSA-2025:0595

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.