CVE-2024-31228
Denial-of-service due to unbounded pattern matching in Redis
Reported by github_m · Published October 7, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| keydb | Bitnami | 6.3.4 |
| redict | Alpine | 7.3.1-r0 |
| redis6-doc | Amazon Linux | 6.2.14-2.amzn2023.0.1 |
| redis | redis | 7.2.6, 6.2.16 |
| valkey | Bitnami | 8.0.1, 7.2.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 2.2.5, < 6.2.16, >= 7.0.0, < 7.2.6, >= 7.3.0, < 7.4.1 |
| alpine | redict | 0 |
| amazon:2023 | redis6-doc | 0 |
| redis | redis | 2.2.5, 7.3.0, 7.0.0 |
| chainguard | redis-6.2 | 0 |
| chainguard | redis-7.4 | 0 |
| wolfi | redis-6.2 | 0 |
| wolfi | redis-7.4 | 0 |
| alpine | valkey | 0 |
| alpine | redis | 0, 0, 0 |
| amazon:2023 | redis6 | 0 |
| amazon:2023 | redis6-devel | 0 |
| wolfi | redis-7.2 | 0 |
| chainguard | py3-redis | * |
| chainguard | redis-7.2 | 0 |
Timeline
- Oct 2, 2024 CVE Published
- Oct 8, 2024 EPSS Score (30 in total, the first dated here)
- Oct 14, 2024 Coalition ESS Score (18 in total, the first dated here)
- Jan 13, 2026 Security Advisory (15 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (6 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-31228
vulnetix vdb fixes CVE-2024-31228
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-2024-31228/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart