CVE-2022-36021
Redis string pattern matching can be abused to achieve Denial of Service
Reported by github_m · Published March 1, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| redis6-devel | Amazon Linux | 6.2.11-1.amzn2023.0.1 |
| redis | dhi.docker.com | 7.0.9, 6.2.11, 6.0.18 |
| redis6 | Amazon Linux | 6.2.11-1.amzn2023.0.1 |
| keydb | Bitnami | 7.0.9, 6.2.11, 6.0.18 |
| valkey | Bitnami | 7.0.9, 6.2.11, 6.0.18 |
| redis | redis | 7.0.9, 6.2.11, 6.0.18 |
| redis | Bitnami | 7.0.9, 6.2.11, 6.0.18 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | < 6.0.18, >= 6.2.0, < 6.2.11, >= 7.0.0, < 7.0.9 |
| amazon:2023 | redis6-devel | 0 |
| amazon:2023 | redis6 | 0 |
| redis | redis | 0, 6.2.0, 7.0.0 |
| amazon:2023 | redis6-doc | 0 |
Timeline
- Feb 28, 2023 CVE Published
- Mar 2, 2023 EPSS Score (30 in total, the first dated here)
- Mar 7, 2025 CVE Updated
- Mar 21, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 21, 2026 Security Advisory (3 in total, the first dated here)
- Jun 20, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-36021
vulnetix vdb fixes CVE-2022-36021
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-36021/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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