CVE-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 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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*

History

04 Sep 2025, 19:10

Type Values Removed Values Added
First Time Redis
Redis redis
CPE cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*
cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*
References () https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0 - () https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0 - Patch
References () https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976 - () https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976 - Vendor Advisory

Information

Published : 2024-10-07 20:15

Updated : 2025-09-04 19:10


NVD link : CVE-2024-31228

Mitre link : CVE-2024-31228

CVE.ORG link : CVE-2024-31228


JSON object : View

Products Affected

redis

  • redis
CWE
CWE-674

Uncontrolled Recursion