CVE-2022-36021 Redis string pattern matching can be abused to achieve Denial of Service
MediumCVSS 5.5
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/redis(Debian 12) | < 5:7.0.9-1 | 5:7.0.9-1 | Fixed |
| debian/redis(Debian 13) | < 5:7.0.9-1 | 5:7.0.9-1 | Fixed |
| debian/redis(Debian 14) | < 5:7.0.9-1 | 5:7.0.9-1 | Fixed |
| Redis | < 6.0.18; = < 6.0.18; = >= 6.2.0, < 6.2.11; = >= 7.0.0, < 7.0.9 +2 more | 6.0.18, 6.2.11, 7.0.9 | Fixed |
| ubuntu/redis(Ubuntu 22.04) | < 5:6.0.16-1ubuntu1+esm1 | 5:6.0.16-1ubuntu1+esm1 | Fixed |
| ubuntu/redis(Ubuntu Pro 14.04) | < 2:2.8.4-2ubuntu0.2+esm3; = 2:2.6.13-1; = 2:2.6.16-3; = 2:2.8.0-1 +5 more | 2:2.8.4-2ubuntu0.2+esm3 | Fixed |
| ubuntu/redis(Ubuntu Pro 16.04) | < 2:3.0.6-1ubuntu0.4+esm2; = 2:3.0.3-3; = 2:3.0.5-1; = 2:3.0.5-2 +7 more | 2:3.0.6-1ubuntu0.4+esm2 | Fixed |
| ubuntu/redis(Ubuntu Pro 18.04) | < 5:4.0.9-1ubuntu0.2+esm4; = 4:4.0.1-7; = 4:4.0.2-6; = 4:4.0.2-9 +11 more | 5:4.0.9-1ubuntu0.2+esm4 | Fixed |
| ubuntu/redis(Ubuntu Pro 20.04) | < 5:5.0.7-2ubuntu0.1+esm2; = 5:5.0.5-2build1; = 5:5.0.6-1; = 5:5.0.7-1 +4 more | 5:5.0.7-2ubuntu0.1+esm2 | Fixed |
| ubuntu/redis(Ubuntu Pro 22.04) | < 5:6.0.16-1ubuntu1+esm1; = 5:6.0.15-1; = 5:6.0.16-1; = 5:6.0.16-1build1 +1 more | 5:6.0.16-1ubuntu1+esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Redis | = < 6.0.18 | No fix listed |
| Redis | = >= 6.2.0, < 6.2.11 | No fix listed |
| Redis | = >= 7.0.0, < 7.0.9 | No fix listed |
| ubuntu/redis(Ubuntu:22.04) | < 5:6.0.16-1ubuntu1+esm1 | 5:6.0.16-1ubuntu1+esm1 |
| Redis | < 6.0.18 | 6.0.18 |
| Redis | >= 6.2.0, < 6.2.11 | 6.2.11 |
| Redis | >= 7.0.0, < 7.0.9 | 7.0.9 |
| ubuntu/redis(Ubuntu:Pro:14.04) | < 2:2.8.4-2ubuntu0.2+esm3 | 2:2.8.4-2ubuntu0.2+esm3 |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.6.13-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.6.16-3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.0-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.2-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2ubuntu0.2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2ubuntu0.2+esm1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2ubuntu0.2+esm2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | < 2:3.0.6-1ubuntu0.4+esm2 | 2:3.0.6-1ubuntu0.4+esm2 |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.3-3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-4 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.3 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.4 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.4+esm1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | < 5:4.0.9-1ubuntu0.2+esm4 | 5:4.0.9-1ubuntu0.2+esm4 |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 4:4.0.1-7 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 4:4.0.2-6 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 4:4.0.2-9 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.5-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.6-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.6-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.7-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.8-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.8-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.2+esm2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.2+esm3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | < 5:5.0.7-2ubuntu0.1+esm2 | 5:5.0.7-2ubuntu0.1+esm2 |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.5-2build1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.6-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2ubuntu0.1~esm1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2ubuntu0.1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2ubuntu0.1+esm1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:22.04) | < 5:6.0.16-1ubuntu1+esm1 | 5:6.0.16-1ubuntu1+esm1 |
| ubuntu/redis(Ubuntu:Pro:22.04) | = 5:6.0.15-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:22.04) | = 5:6.0.16-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:22.04) | = 5:6.0.16-1build1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:22.04) | = 5:6.0.16-1ubuntu1 | No fix listed |
| debian/redis(Debian:12) | < 5:7.0.9-1 | 5:7.0.9-1 |
| debian/redis(Debian:13) | < 5:7.0.9-1 | 5:7.0.9-1 |
| debian/redis(Debian:14) | < 5:7.0.9-1 | 5:7.0.9-1 |
References
- Debian Security Tracker CVE-2022-36021 vendor-advisory
- https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv issue-tracking vendor-advisory
- https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84 patch
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6531-1 vendor-advisory
- www.cve.org issue-tracking