Vulnerability · Published Mar 1, 2023 · Assigned by GitHub_M
CVE-2022-36021Redis string pattern matching can be abused to achieve Denial of Service
Medium 5.5
In plain English
A medium-severity security flaw in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 59.8% (higher than 99.1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | redis | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:8 | redis-devel | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:8 | redis-doc | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| Debian:12 | redis | 5:7.0.9-1 | DEBIAN-CVE-2022-36021 |
| Debian:13 | redis | 5:7.0.9-1 | DEBIAN-CVE-2022-36021 |
| Debian:14 | redis | 5:7.0.9-1 | DEBIAN-CVE-2022-36021 |
| Rocky Linux:8 | redis | 0:6.2.17-1.module+el8.10.0+1923+5b85c6a7 | RLSA-2025:0595 |
Affected products (as reported)
Weakness: CWE-407 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv x_refsource_CONFIRM
- https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84 x_refsource_MISC