VDB

CVE-2022-36021

CVE-2022-36021 PUBLISHED CVSS 5.5 MEDIUM

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

Reported by github_m · Published March 1, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
redis6-develAmazon Linux6.2.11-1.amzn2023.0.1
redisdhi.docker.com7.0.9, 6.2.11, 6.0.18
redis6Amazon Linux6.2.11-1.amzn2023.0.1
keydbBitnami7.0.9, 6.2.11, 6.0.18
valkeyBitnami7.0.9, 6.2.11, 6.0.18
redisredis7.0.9, 6.2.11, 6.0.18
redisBitnami7.0.9, 6.2.11, 6.0.18

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
redisredis< 6.0.18, >= 6.2.0, < 6.2.11, >= 7.0.0, < 7.0.9
amazon:2023redis6-devel0
amazon:2023redis60
redisredis0, 6.2.0, 7.0.0
amazon:2023redis6-doc0

Timeline

  • Feb 28, 2023 CVE Published
  • Mar 2, 2023 EPSS Score (30 in total, the first dated here)
  • Mar 7, 2025 CVE Updated
  • Mar 21, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 21, 2026 Security Advisory (3 in total, the first dated here)
  • Jun 20, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-36021
vulnetix vdb fixes CVE-2022-36021

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-36021/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›