Skip to content

Redis string pattern matching can be abused to achieve Denial of Service

Moderate
yossigo published GHSA-jr7j-rfj5-8xqv Feb 28, 2023

Package

Redis (N/A)

Affected versions

All versions

Patched versions

6.0.18, 6.2.11, 7.0.9

Description

Impact

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.

Patches

The problem is fixed in Redis versions 6.0.18, 6.2.11, 7.0.9.

Credit

The issue has been identified by Tom Levy.

For more information

If you have any questions or comments about this advisory:

Severity

Moderate
5.5
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2022-36021

Weaknesses