cve.bz

CVE-2024-31228 redis redis: Uncontrolled Recursion

6.5 mediumEPSS 1.0%Fix available

Medium (6.5) in redis redis. EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-31228 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31228?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31228?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-31228 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisfrom 2.2.5 before 6.2.16
redis:redisfrom 7.2.0 before 7.2.6
redis:redis7.4.0
redis:redis7.4.0:rc1
redis:redis7.4.0:rc2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11redis5:6.0.16-1+deb11u4DLA-3973-1
Debian12redis5:7.0.15-1~deb12u2DEBIAN-CVE-2024-31228
Debian13, 14redis5:7.0.15-2DEBIAN-CVE-2024-31228
Debian13, 14valkey8.0.1+dfsg1-1DEBIAN-CVE-2024-31228
Debian14redict7.3.1+ds-1DEBIAN-CVE-2024-31228
Ubuntu24.04:LTSredis5:7.0.15-1ubuntu0.24.04.1UBUNTU-CVE-2024-31228 USN-7321-1
UbuntuPro:14.04:LTSredis2:2.8.4-2ubuntu0.2+esm4USN-7321-1
UbuntuPro:16.04:LTSredis2:3.0.6-1ubuntu0.4+esm3UBUNTU-CVE-2024-31228 USN-7321-1
UbuntuPro:18.04:LTSredis5:4.0.9-1ubuntu0.2+esm5UBUNTU-CVE-2024-31228 USN-7321-1
UbuntuPro:20.04:LTSredis5:5.0.7-2ubuntu0.1+esm3UBUNTU-CVE-2024-31228 USN-7321-1
UbuntuPro:22.04:LTSredis5:6.0.16-1ubuntu1+esm2UBUNTU-CVE-2024-31228 USN-7321-1
Red Hatenterprise_linux:8::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.17-1.module+el8.10.0+22680+748527fdRHSA-2025:0595
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.17-1.el9_5RHSA-2025:0693
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.6-1.module+el9.5.0+22422+63e067d8RHSA-2024:10869
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 moreredis6.0.14-150200.6.32.1SUSE-SU-2025:0081-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Server Applications 15 SP5 and 4 moreredis6.2.6-150400.3.28.1SUSE-SU-2024:3575-1
SUSELinux Enterprise Module for Server Applications 15 SP5redis77.0.8-150500.3.12.1SUSE-SU-2024:3549-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis7.2.4-150600.3.3.1SUSE-SU-2024:3535-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis77.0.8-150600.8.3.1SUSE-SU-2024:3537-1
openSUSELeap 15.5redis6.2.6-150400.3.28.1SUSE-SU-2024:3575-1
openSUSELeap 15.5redis77.0.8-150500.3.12.1SUSE-SU-2024:3549-1
openSUSELeap 15.6redis7.2.4-150600.3.3.1SUSE-SU-2024:3535-1
openSUSELeap 15.6redis77.0.8-150600.8.3.1SUSE-SU-2024:3537-1
openSUSETumbleweedredis8.0.2-1.1openSUSE-SU-2025:15293-1
openSUSETumbleweedvalkey8.0.1-1.1openSUSE-SU-2024:14412-1
AlmaLinux8redis, redis-doc, redis-devel6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux9redis, redis-doc, redis-devel6.2.17-1.el9_5ALSA-2025:0693
AlmaLinux9redis, redis-doc, redis-devel7.2.6-1.module_el9.5.0+130+36ae7635ALSA-2024:10869
Rocky Linux8redis0:6.2.17-1.module+el8.10.0+1923+5b85c6a7RLSA-2025:0595
Rocky Linux9redis0:6.2.17-1.el9_5RLSA-2025:0693
Alpinev3.15redis6.2.18-r0ALPINE-CVE-2024-31228
Alpinev3.17, v3.18redis7.0.15-r1ALPINE-CVE-2024-31228
Alpinev3.19redis7.2.4-r1ALPINE-CVE-2024-31228
Alpinev3.20, v3.21, v3.22 and 2 moreredict7.3.1-r0ALPINE-CVE-2024-31228
Alpinev3.20, v3.21, v3.22 and 2 moreredis7.2.5-r1ALPINE-CVE-2024-31228
Alpinev3.20, v3.21, v3.22 and 2 morevalkey7.2.7-r0ALPINE-CVE-2024-31228
Azure Linux2redis6.2.16-1AZL-50154
Azure Linux3valkey8.0.1-1AZL-52011
Alpaquita23redis7.0.15-r1BELL-CVE-2024-31228
Alpaquitastreamredis7.2.5-r1BELL-CVE-2024-31228

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Discovery 1 for RHEL 9discovery/discovery-server-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Discovery 1 for RHEL 9discovery/discovery-ui-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Red Hat Enterprise Linux 8redis:6-8100020250113083959.489197e6Fixed 2025-01-22RHSA-2025:0595
Red Hat Enterprise Linux 9redis:7-9050020241104103753.9Fixed 2024-12-05RHSA-2024:10869
Red Hat Enterprise Linux 9redis-0:6.2.17-1.el9_5Fixed 2025-01-27RHSA-2025:0693
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Will not fix
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-31228.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON