What’s Vulnerable › Vulnerabilities
CVE-2022-36021: Redis string pattern matching can be abused to achieve Denial of Service
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 59.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-03-01 · updated 2026-06-17
- Weakness: CWE-407
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 products
- Redis: before 6.0.18; from 6.2.0 before 6.2.11; from 7.0.0 before 7.0.9 — fixed in 6.0.18, 6.2.11, 7.0.9
How to fix
Upgrade to a fixed version: Redis 6.0.18, 6.2.11, 7.0.9. Check the vendor advisory for mitigations.
References
- https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84
- https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv
- https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84
- https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv
Get alerted when CVE-2022-36021 or the next vulnerability affects your stack