# CVE-2024-31228: Denial-of-service due to unbounded pattern matching in Redis

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-02)
- Published: 2024-10-07T19:51:06.784Z
- Modified: 2026-09-08T08:48:21.245Z
- Also known as: BIT-KEYDB-2024-31228, BIT-REDIS-2024-31228, BIT-VALKEY-2024-31228, GHSA-66gq-c942-6976
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- redis redis: >= 2.2.5, < 6.2.16; >= 7.0.0, < 7.2.6; >= 7.3.0, < 7.4.1; from 2.2.5 before 6.2.16; from 7.2.0 before 7.2.6; 7.4.0
- keydb (Bitnami): from 2.2.5 before 6.3.4; from 7.0.0
- redis (Bitnami): from 2.2.5 before 6.2.16; from 7.0.0 before 7.2.8; from 7.3.0 before 7.4.1
- valkey (Bitnami): before 7.2.7; from 8.0.0 before 8.0.1

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976> (advisory, vendor-advisory)
- <https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0> (fix, patch)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00031.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31228> (web)

## Sources

- CVE List: [CVE-2024-31228](https://www.cve.org/CVERecord?id=CVE-2024-31228), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-31228](https://nvd.nist.gov/vuln/detail/CVE-2024-31228), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KEYDB-2024-31228](https://osv.dev/vulnerability/BIT-KEYDB-2024-31228), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2024-31228](https://osv.dev/vulnerability/BIT-REDIS-2024-31228), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2024-31228](https://osv.dev/vulnerability/BIT-VALKEY-2024-31228), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-31228 · Whole record: https://cve.day/CVE-2024-31228.json · Rebuilt by cve.day 2026-11-25T22:58:46.138Z
