CVE-2024-31228: Denial-of-service due to unbounded pattern matching in Redis
Vulnerability summary
CVE-2024-31228 is a medium (CVSS 6.5) Uncontrolled Recursion vulnerability in redis. EPSS estimates a 1.01% chance of exploitation in the next 30 days, higher than 64.2% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 10Timeline
- 07-10-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.01%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.01% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard13 products
- py3-redisAll versions (No fix recorded)
- py3.10-redisAll versions (No fix recorded)
- py3.11-redisAll versions (No fix recorded)
- py3.12-redisAll versions (No fix recorded)
- py3.13-redisAll versions (No fix recorded)
Alpine3 products
- redict< 7.3.1-r0
- redis≥ 2.2.5, < 7.2.4-r1 | ≥ 2.2.5, < 7.2.5-r1 | ≥ 2.2.5, < 6.2.18-r0 | ≥ 2.2.5, < 7.0.15-r1 | ≥ 7.2.0, < 7.2.4-r1 | ≥ 7.2.0, < 7.2.5-r1
- valkey< 7.2.7-r0
Debian3 products
- redict< 7.3.1+ds-1
- redis< 5:7.0.15-1~deb12u2 | < 5:7.0.15-2
- valkey< 8.0.1+dfsg1-1
Redis1 product
- redis≥ 7.0.0, < 7.2.6 | ≥ 7.3.0, < 7.4.1 | ≥ 2.2.5, < 6.2.16 | ≥ 7.2.0, < 7.2.6 | 7.4.0 | 7.4.0:rc1 | 7.4.0:rc2
Ubuntu1 product
- redis< 2:3.0.6-1ubuntu0.4+esm3 | < 5:4.0.9-1ubuntu0.2+esm5 | < 5:5.0.7-2ubuntu0.1+esm3 | < 5:6.0.16-1ubuntu1+esm2 | < 5:7.0.15-1ubuntu0.24.04.1
5 vendors · 21 products
References
10 links- github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976X Refsource CONFIRMREPORTAdvisoryVendor Advisory
- github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0X Refsource MISCREPORTFIXPatch