cve.bz

CVE-2024-31449 redis redis: Stack-based Buffer Overflow

8.8 highEPSS 4.5%Fix available

High (8.8) in redis redis. EPSS 4.5% 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. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. 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

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
4.5% (unchanged from 4.5% a week ago; 4.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2024-11-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-121 Stack-based Buffer Overflow
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-31449 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31449?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31449?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-31449 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.8.18 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
Debian12redis5:7.0.15-1~deb12u2DEBIAN-CVE-2024-31449
Debian13, 14redis5:7.0.15-2DEBIAN-CVE-2024-31449
Debian13, 14valkey8.0.1+dfsg1-1DEBIAN-CVE-2024-31449
Debian14redict7.3.1+ds-1DEBIAN-CVE-2024-31449
Ubuntu16.04:LTS, 18.04:LTS, 24.04:LTS and 3 morelua-bitopno fix listedUBUNTU-CVE-2024-31449
Ubuntu24.04:LTSredis5:7.0.15-1ubuntu0.24.04.4UBUNTU-CVE-2024-31449
UbuntuPro:16.04:LTSredis2:3.0.6-1ubuntu0.4+esm5UBUNTU-CVE-2024-31449
UbuntuPro:18.04:LTSredis5:4.0.9-1ubuntu0.2+esm7UBUNTU-CVE-2024-31449
UbuntuPro:20.04:LTSlua-bitop1.0.2-5ubuntu0.20.04.1~esm2UBUNTU-CVE-2024-31449
UbuntuPro:22.04:LTSlua-bitop1.0.2-5ubuntu0.22.04.1~esm2UBUNTU-CVE-2024-31449
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-31449
Alpinev3.17, v3.18redis7.0.15-r1ALPINE-CVE-2024-31449
Alpinev3.19redis7.2.4-r1ALPINE-CVE-2024-31449
Alpinev3.20, v3.21, v3.22 and 2 moreredict7.3.1-r0ALPINE-CVE-2024-31449
Alpinev3.20, v3.21, v3.22 and 2 moreredis7.2.5-r1ALPINE-CVE-2024-31449
Alpinev3.20, v3.21, v3.22 and 2 morevalkey7.2.7-r0ALPINE-CVE-2024-31449
Azure Linux2redis6.2.14-3AZL-50129
Azure Linux3valkey8.0.1-1AZL-52004
Alpaquita23redis7.0.15-r1BELL-CVE-2024-31449
Alpaquitastreamredis7.2.5-r1BELL-CVE-2024-31449

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 do not 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 Enterprise Linux 10valkeyNot affected
Red Hat Enterprise Linux 9valkeyNot affected
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-31449.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET HUNTING Redis Authenticated Remote Code Execution in bit Library (CVE-2024-31449) sid 2057707

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON