# CVE-2022-36021: Redis string pattern matching can be abused to achieve Denial of Service

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 59.8%, higher than 99% of CVEs (2026-12-01)
- Published: 2023-03-01T15:46:23.567Z
- Modified: 2026-09-08T08:48:18.981Z
- Also known as: BIT-KEYDB-2022-36021, BIT-REDIS-2022-36021, BIT-VALKEY-2022-36021, GHSA-jr7j-rfj5-8xqv
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- redis redis: < 6.0.18; >= 6.2.0, < 6.2.11; >= 7.0.0, < 7.0.9; before 6.0.18; from 6.2.0 before 6.2.11; from 7.0.0 before 7.0.9
- keydb (Bitnami): before 6.0.18; from 6.2.0 before 6.2.11; from 7.0.0 before 7.0.9
- redis (Bitnami): before 6.0.18; from 6.2.0 before 6.2.11; from 7.0.0 before 7.0.9
- valkey (Bitnami): before 6.0.18; from 6.2.0 before 6.2.11; from 7.0.0 before 7.0.9

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv> (advisory, vendor-advisory, web)
- <https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36021> (web)

## Sources

- CVE List: [CVE-2022-36021](https://www.cve.org/CVERecord?id=CVE-2022-36021), CVE Terms of Use, modified 2025-03-07
- NVD: [CVE-2022-36021](https://nvd.nist.gov/vuln/detail/CVE-2022-36021), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KEYDB-2022-36021](https://osv.dev/vulnerability/BIT-KEYDB-2022-36021), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2022-36021](https://osv.dev/vulnerability/BIT-REDIS-2022-36021), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2022-36021](https://osv.dev/vulnerability/BIT-VALKEY-2022-36021), Apache-2.0, modified 2025-10-14

---

Page: https://cve.day/CVE-2022-36021 · Whole record: https://cve.day/CVE-2022-36021.json · Rebuilt by cve.day 2026-11-25T22:58:18.777Z
