Skip to content
Noroxi
CVE-2022-36021· NVD / CVE Program· CNA GitHub_M

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

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.

MediumCVSS 5.5 · v3.1—No exploit Fix available
Published
Mar 1, 2023
Updated
Jun 17, 2026
EPSS
59.8% · 99th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

40

Plan

Add it to your regular patch cycle.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
18 / 30 · 59.8%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
5.5
CNA · GitHub_M
5.5
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
redisredis

Using redis? Add it to your stack and be the first to know about CVEs like this one. (Redis)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • redis redisbefore 6.0.18
  • redis redis6.2.0 and later · before 6.2.11
  • redis redis7.0.0 and later · before 7.0.9

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • redis redis

    • < 6.0.18, >= 6.2.0, < 6.2.11, >= 7.0.0, < 7.0.9affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8redisbefore 6.2.17-1.module_el8.10.0+3946+3de613d56.2.17-1.module_el8.10.0+3946+3de613d5
AlmaLinux:8redis-develbefore 6.2.17-1.module_el8.10.0+3946+3de613d56.2.17-1.module_el8.10.0+3946+3de613d5
AlmaLinux:8redis-docbefore 6.2.17-1.module_el8.10.0+3946+3de613d56.2.17-1.module_el8.10.0+3946+3de613d5
Debian:10redisbefore 5:5.0.14-1+deb10u35:5.0.14-1+deb10u3
Debian:11redisbefore 5:6.0.16-1+deb11u35:6.0.16-1+deb11u3
Debian:12redisbefore 5:7.0.9-15:7.0.9-1
openSUSE:Tumbleweedredisbefore 7.0.8-2.17.0.8-2.1
Red Hat:enterprise_linux:8::appstreamredisbefore 0:6.2.17-1.module+el8.10.0+22680+748527fd0:6.2.17-1.module+el8.10.0+22680+748527fd
Red Hat:enterprise_linux:8::appstreamredis-debuginfobefore 0:6.2.17-1.module+el8.10.0+22680+748527fd0:6.2.17-1.module+el8.10.0+22680+748527fd
Red Hat:enterprise_linux:8::appstreamredis-debugsourcebefore 0:6.2.17-1.module+el8.10.0+22680+748527fd0:6.2.17-1.module+el8.10.0+22680+748527fd
Red Hat:enterprise_linux:8::appstreamredis-develbefore 0:6.2.17-1.module+el8.10.0+22680+748527fd0:6.2.17-1.module+el8.10.0+22680+748527fd
Red Hat:enterprise_linux:8::appstreamredis-docbefore 0:6.2.17-1.module+el8.10.0+22680+748527fd0:6.2.17-1.module+el8.10.0+22680+748527fd
Rocky Linux:8redisbefore 0:6.2.17-1.module+el8.10.0+1923+5b85c6a70:6.2.17-1.module+el8.10.0+1923+5b85c6a7
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSredisbefore 6.0.14-150200.6.20.16.0.14-150200.6.20.1
SUSE:Linux Enterprise Module for Server Applications 15 SP4redisbefore 6.2.6-150400.3.16.16.2.6-150400.3.16.1
SUSE:Linux Enterprise Module for Server Applications 15 SP4redisbefore 6.2.6-150400.3.16.16.2.6-150400.3.16.1
SUSE:Linux Enterprise Module for Server Applications 15 SP4redisbefore 6.2.6-150400.3.19.16.2.6-150400.3.19.1
SUSE:Linux Enterprise Module for Server Applications 15 SP4redisbefore 6.2.6-150400.3.19.16.2.6-150400.3.19.1
SUSE:Linux Enterprise Module for Server Applications 15 SP5redis7before 7.0.8-150500.3.3.17.0.8-150500.3.3.1
SUSE:Linux Enterprise Module for Server Applications 15 SP5redis7before 7.0.8-150500.3.3.17.0.8-150500.3.3.1

Other highest-scoring records for the same primary product.

  • CVE-2022-0543It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escapeKEV
    100Now
  • CVE-2025-49844Redis Lua Use-After-Free may lead to remote code execution
    64This week
  • CVE-2023-36824Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis
    58Plan
  • CVE-2022-24834Heap overflow issue with the Lua cjson library used by Redis
    47Plan
  • CVE-2023-22458Integer overflow in multiple Redis commands can lead to denial-of-service
    44Plan
  • CVE-2024-46981Redis' Lua library commands may lead to remote code execution
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
AlmaLinux:redis6.2.17-1.module_el8.10.0+3946+3de613d5 · AlmaLinux:8Package registry (OSV)
AlmaLinux:redis-devel6.2.17-1.module_el8.10.0+3946+3de613d5 · AlmaLinux:8Package registry (OSV)
AlmaLinux:redis-doc6.2.17-1.module_el8.10.0+3946+3de613d5 · AlmaLinux:8Package registry (OSV)
Debian:redis5:7.0.9-1 · Debian:12Package registry (OSV)
openSUSE:redis6.2.6-150400.3.16.1 · openSUSE:Leap 15.4Package registry (OSV)
openSUSE:redis77.0.8-150500.3.3.1 · openSUSE:Leap 15.5Package registry (OSV)
Red Hat:redis0:6.2.17-1.module+el8.10.0+22680+748527fd · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
Red Hat:redis-debuginfo0:6.2.17-1.module+el8.10.0+22680+748527fd · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
Red Hat:redis-debugsource0:6.2.17-1.module+el8.10.0+22680+748527fd · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
Red Hat:redis-devel0:6.2.17-1.module+el8.10.0+22680+748527fd · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
Red Hat:redis-doc0:6.2.17-1.module+el8.10.0+22680+748527fd · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
Rocky Linux:redis0:6.2.17-1.module+el8.10.0+1923+5b85c6a7 · Rocky Linux:8Package registry (OSV)
SUSE:redis6.0.14-150200.6.20.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSPackage registry (OSV)
SUSE:redis6.2.6-150400.3.16.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP4Package registry (OSV)
SUSE:redis77.0.8-150500.3.3.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP5Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records