CVE Vulnerabilities

CVE-2024-31228

Uncontrolled Recursion

Published: Oct 07, 2024 | Modified: Nov 03, 2025
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
5.5 MODERATE
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

NameVendorStart VersionEnd Version
RedisRedis2.2.5 (including)6.2.16 (excluding)
RedisRedis7.2.0 (including)7.2.6 (excluding)
RedisRedis7.4.0 (including)7.4.0 (including)
RedisRedis7.4.0-rc1 (including)7.4.0-rc1 (including)
RedisRedis7.4.0-rc2 (including)7.4.0-rc2 (including)
Discovery 1 for RHEL 9RedHatdiscovery/discovery-server-rhel9:1.12.0-1*
Discovery 1 for RHEL 9RedHatdiscovery/discovery-ui-rhel9:1.12.0-1*
Red Hat Enterprise Linux 8RedHatredis:6-8100020250113083959.489197e6*
Red Hat Enterprise Linux 9RedHatredis:7-9050020241104103753.9*
Red Hat Enterprise Linux 9RedHatredis-0:6.2.17-1.el9_5*
RedisUbuntuesm-apps/bionic*
RedisUbuntuesm-apps/focal*
RedisUbuntuesm-apps/jammy*
RedisUbuntuesm-apps/noble*
RedisUbuntuesm-apps/xenial*
RedisUbuntuesm-infra-legacy/trusty*
RedisUbuntufocal*
RedisUbuntujammy*
RedisUbuntunoble*
RedisUbuntuoracular*
RedisUbuntuplucky*
RedisUbuntutrusty/esm*
RedisUbuntuupstream*

Potential Mitigations

References