CVE-2022-36021 json
Redis string pattern matching can be abused to achieve Denial of Service
published 2023-02-28 3 y ago modified 2026-09-08 2 mo ago also BIT-keydb-2022-36021 , BIT-redis-2022-36021 , BIT-valkey-2022-36021 , EUVD-2022-38807 , GHSA-jr7j-rfj5-8xqv
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 59.8%
- EPSS 59.8% chance of exploitation in 30 days, percentile 99.1%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami keydb 6.0.18, 6.2.11, 7.0.9
- bitnami redis 6.0.18, 6.2.11, 7.0.9
- bitnami valkey 6.0.18, 6.2.11, 7.0.9
- redis redis 6.0.18, 6.2.11, 7.0.9
- redis Debian 14, Debian 13, Debian 12 5:7.0.9-1
debian advisories DEBIAN-CVE-2022-36021
- redis Ubuntu Pro 14.04 LTS 2:2.8.4-2ubuntu0.2+esm3
- redis Ubuntu Pro 16.04 LTS 2:3.0.6-1ubuntu0.4+esm2
- redis Ubuntu Pro 18.04 LTS 5:4.0.9-1ubuntu0.2+esm4
- redis Ubuntu Pro 20.04 LTS 5:5.0.7-2ubuntu0.1+esm2
- redis Ubuntu Pro 22.04 LTS 5:6.0.16-1ubuntu1+esm1
ubuntu advisories UBUNTU-CVE-2022-36021
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- redis RHEL 8 6.2.17-1.module+el8.10.0+22680+748527fd
red hat advisories RHSA-2025:0595
- redis7 SLE Module for Server Applications 15 SP5, openSUSE Leap 15.5 7.0.8-150500.3.3.1
- redis SLE Module for Server Applications 15 SP4, openSUSE Leap 15.4 6.2.6-150400.3.19.1
- redis SLE Module for Server Applications 15 SP4, openSUSE Leap 15.4 6.2.6-150400.3.16.1
- redis SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +9 more 6.0.14-150200.6.20.1
suse advisories SUSE-SU-2023:2925-1SUSE-SU-2023:2122-1SUSE-SU-2023:0694-1SUSE-SU-2023:0693-1
- redis openSUSE Tumbleweed 7.0.8-2.1
opensuse advisories openSUSE-SU-2024:12743-1
- redis AlmaLinux 8 6.2.17-1.module_el8.10.0+3946+3de613d5
almalinux advisories ALSA-2025:0595
- redis Rocky Linux 8 6.2.17-1.module+el8.10.0+1923+5b85c6a7
rocky linux advisories RLSA-2025:0595
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-36021 updated cvss 5.5
redis: Specially crafted SRANDMEMBER, ZRANDMEMBER, and HRANDFIELD commands can trigger an integer overflow
-
Red Hat OpenStack Platform 13 (Queens) redisaffected: no fix planned “Out of support scope”
-
Red Hat Software Collections rh-redis6-redisaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) redis 6.2.17-1.module+el8.10.0+22680+748527fdfixed: vendor fix RHSA-2025:0595
-
Red Hat Enterprise Linux 9 redisnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-24-046-11 updated cvss 5.5
Siemens SCALANCE XCM-/XRM-300
-
Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4affected: fixed in V2.4 support.industry.siemens.com
+5 more productsfewer
Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
59.77% chance of exploitation in the next 30 days, higher than 99.1% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | keydb | <6.0.18 >=6.2.0, <6.2.11 >=7.0.0, <7.0.9 |
6.0.18 6.2.11 7.0.9 |
| bitnami | redis | <6.0.18 >=6.2.0, <6.2.11 >=7.0.0, <7.0.9 |
6.0.18 6.2.11 7.0.9 |
| bitnami | valkey | <6.0.18 >=6.2.0, <6.2.11 >=7.0.0, <7.0.9 |
6.0.18 6.2.11 7.0.9 |
Affected products
- redis redis
Classification
- Weakness
-
- CWE-407 Inefficient Algorithmic Complexity
- Technology feeds
References
-
github.com
/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84
patch, web
-
github.com
/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv
vendor-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-36021
web
Sources
- CVE List CVE-2022-36021
- NVD CVE-2022-36021
- OSV BIT-keydb-2022-36021
- OSV BIT-redis-2022-36021
- OSV BIT-valkey-2022-36021
- Maintainer advisory GHSA-jr7j-rfj5-8xqv
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.