CVE-2022-36021

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

State
Published
Severity
5.5 Medium
Published
Mar 1, 2023
Updated
Mar 7, 2025
Reserved
Jul 15, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-407 Inefficient Algorithmic Complexity

Affected Products

ProductVersions
redisredis
  • < 6.0.18Affected
  • >= 6.2.0, < 6.2.11Affected
  • >= 7.0.0, < 7.0.9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.