{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-31228","id":"CVE-2024-31228","title":"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 cras","descriptionLong":"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.","published":"2024-10-07T19:51:06.784Z","updated":"2026-10-28T10:43:43.972861910Z","reserved":"2024-03-29T14:16:31.902Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["redis"],"affectedProducts":[{"vendor":"redis","product":"redis","defaultStatus":null,"versions":[{"version":">= 2.2.5, < 6.2.16","status":"affected"},{"version":">= 7.0.0, < 7.2.6","status":"affected"},{"version":">= 7.3.0, < 7.4.1","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-674"],"aliases":["BIT-keydb-2024-31228","BIT-redis-2024-31228","BIT-valkey-2024-31228","GHSA-66gq-c942-6976"],"references":[{"url":"https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory"]},{"url":"https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00031.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31228.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31228","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01011,"epssPercentile":0.63827,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-31228","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31228","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-31228","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-31228","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["redis"],"critical":[],"attention":null}