CVE-2024-31228
Denial-of-service due to unbounded pattern matching in Redis
Description
Redis is an open source, in-memory database that persists on disk. Authenticated users can trigger a denial-of-service by using specially crafted, long string match patterns on supported commands such as `KEYS`, `SCAN`, `PSUBSCRIBE`, `FUNCTION LIST`, `COMMAND LIST` and ACL definitions. Matching of extremely long patterns may result in unbounded recursion, leading to stack overflow and process crash. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
INFO
Published Date :
Oct. 7, 2024, 8:15 p.m.
Last Modified :
Sept. 4, 2025, 7:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Redis packages to a patched version.
- Update any related development or documentation packages.
Public PoC/Exploit Available at Github
CVE-2024-31228 has a 1 public
PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-31228
.
URL | Resource |
---|---|
https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0 | Patch |
https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976 | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-31228
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-31228
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
A Comprehensive Pentest Suite for Redis.
automation cli-tool exploits golang golang-cli golang-package goreleaser pentest-tool pentesting-tools redis scanner security-tools vulnerability-scanner scan-tool bugbounty cicd
Makefile Go
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-31228
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-31228
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Reanalysis by [email protected]
Sep. 04, 2025
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 7.2.0 up to (excluding) 7.2.6 *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 7.4.0 up to (excluding) 7.4.1 *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 2.2.5 up to (excluding) 6.2.16 OR *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 7.2.0 up to (excluding) 7.2.6 *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 2.2.5 up to (excluding) 6.2.16 *cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:* *cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:* *cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:* -
Initial Analysis by [email protected]
Sep. 04, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CPE Configuration OR *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 7.2.0 up to (excluding) 7.2.6 *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 7.4.0 up to (excluding) 7.4.1 *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 2.2.5 up to (excluding) 6.2.16 Added Reference Type GitHub, Inc.: https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976 Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0 Types: Patch -
CVE Received by [email protected]
Oct. 07, 2024
Action Type Old Value New Value Added Description Redis is an open source, in-memory database that persists on disk. Authenticated users can trigger a denial-of-service by using specially crafted, long string match patterns on supported commands such as `KEYS`, `SCAN`, `PSUBSCRIBE`, `FUNCTION LIST`, `COMMAND LIST` and ACL definitions. Matching of extremely long patterns may result in unbounded recursion, leading to stack overflow and process crash. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability. Added Reference GitHub, Inc. https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976 [No types assigned] Added Reference GitHub, Inc. https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0 [No types assigned] Added CWE GitHub, Inc. CWE-674 Added CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H