CVE-2024-31228
published 2024-10-07CVE-2024-31228: 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…
PriorityP334medium6.5CVSS 3.1
AVNACLPRLUINSUCNINAH
EPSS
1.01%
59.6th percentile
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.
Affected
29 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | redict | < redict 7.3.1+ds-1 (forky) | redict 7.3.1+ds-1 (forky) |
| debian | redis | < redict 7.3.1+ds-1 (forky) | redict 7.3.1+ds-1 (forky) |
| debian | valkey | < redict 7.3.1+ds-1 (forky) | redict 7.3.1+ds-1 (forky) |
| lfprojects | valkey | >= 0 < 8.0.1+dfsg1-1 | 8.0.1+dfsg1-1 |
| lfprojects | valkey | >= 0 < 8.0.1+dfsg1-1 | 8.0.1+dfsg1-1 |
| msrc | azl3_valkey_8.0.0-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_valkey_8.0.1-1_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_redis_6.2.14-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_redis_6.2.16-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| redis | redis | — | — |
| redis | redis | — | — |
| redis | redis | — | — |
| redis | redis | — | — |
| redis | redis | >= 0 < 5:6.0.16-1+deb11u4 | 5:6.0.16-1+deb11u4 |
| redis | redis | >= 0 < 5:7.0.15-1~deb12u2 | 5:7.0.15-1~deb12u2 |
| redis | redis | >= 0 < 5:7.0.15-2 | 5:7.0.15-2 |
| redis | redis | >= 0 < 5:7.0.15-2 | 5:7.0.15-2 |
| redis | redis | >= 0 < 5:7.0.15-1ubuntu0.24.04.1 | 5:7.0.15-1ubuntu0.24.04.1 |
| redis | redis | >= 0 < 2:2.8.4-2ubuntu0.2+esm4 | 2:2.8.4-2ubuntu0.2+esm4 |
| redis | redis | >= 0 < 2:3.0.6-1ubuntu0.4+esm3 | 2:3.0.6-1ubuntu0.4+esm3 |
| redis | redis | >= 0 < 5:4.0.9-1ubuntu0.2+esm5 | 5:4.0.9-1ubuntu0.2+esm5 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv6.5MEDIUM
vendor_debian5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
vendor_ubuntu5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Redis vulnerabilities
vendor_ubuntu·2025-03-05·CVSS 5.5
CVE-2024-46981 [MEDIUM] Redis vulnerabilities
Title: Redis vulnerabilities
Summary: Several security issues were fixed in Redis.
It was discovered that Redis incorrectly handled certain memory operations
during pattern matching. An attacker could possibly use this issue to cause
a denial of service. (CVE-2024-31228)
It was discovered that Redis incorrectly handled certain specially crafted
Lua scripts. An attacker could possibly use this issue to cause a denial
of service or execute arbitrary code. (CVE-2024-46981)
It was discovered that Redis incorrectly handled some malformed ACL
selectors. An attacker could possibly use this issue to cause a denial of
service. This issue only affected Ubuntu 24.10 and Ubuntu 24.04 LTS.
(CVE-2024-51741)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
Denial-of-service due to unbounded pattern matching in Redis
vendor_msrc·2024-10-08·CVSS 5.5
CVE-2024-31228 [MEDIUM] CWE-674 Denial-of-service due to unbounded pattern matching in Redis
Denial-of-service due to unbounded pattern matching in Redis
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: ht
Red Hat
redis: Denial-of-service due to unbounded pattern matching in Redis
vendor_redhat·2024-10-07·CVSS 5.5
CVE-2024-31228 [MEDIUM] CWE-674 redis: Denial-of-service due to unbounded pattern matching in Redis
redis: Denial-of-service due to unbounded pattern matching in Redis
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.
A flaw was found in Redis. This flaw allows authenticated users to trigger a denial of service by using specially crafted, long string match patterns on supported command
Debian
CVE-2024-31228: redict - Redis is an open source, in-memory database that persists on disk. Authenticated...
vendor_debian·2024·CVSS 5.5
CVE-2024-31228 [MEDIUM] CVE-2024-31228: redict - Redis is an open source, in-memory database that persists on disk. Authenticated...
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.
Scope: local
forky: resolved (fixed in 7.3.1+ds-1)
sid: resolved (fixed in 7.3.1+ds-1)
OSV
redis vulnerabilities
osv·2025-03-05·CVSS 6.5
CVE-2024-31228 [MEDIUM] redis vulnerabilities
redis vulnerabilities
It was discovered that Redis incorrectly handled certain memory operations
during pattern matching. An attacker could possibly use this issue to cause
a denial of service. (CVE-2024-31228)
It was discovered that Redis incorrectly handled certain specially crafted
Lua scripts. An attacker could possibly use this issue to cause a denial
of service or execute arbitrary code. (CVE-2024-46981)
It was discovered that Redis incorrectly handled some malformed ACL
selectors. An attacker could possibly use this issue to cause a denial of
service. This issue only affected Ubuntu 24.10 and Ubuntu 24.04 LTS.
(CVE-2024-51741)
OSV
CVE-2024-31228: Redis is an open source, in-memory database that persists on disk
osv·2024-10-07·CVSS 6.5
CVE-2024-31228 [MEDIUM] CVE-2024-31228: Redis is an open source, in-memory database that persists on disk
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-10-07
Published