Read the docs
TI-2024-20813 Aliases CVE-2024-31449

Lua library commands may lead to stack overflow and RCE in Redis

Priority HIGH 73CWE-121Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 3 fixed, 2 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-121 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.04458 91st percentileScored 2026-11-07
Fix Partial redis (redis): 6.2.16, 7.2.6, 7.4.1Red Hat: 4 advisoriesRed Hat: 3 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Redisredis2.6 to before 6.2.16; 7.0.0 to before 7.2.6; 7.3.0 to before 7.4.16.2.16, 7.2.6, 7.4.1Patch availableCNA
  • redis VendorRedis Affected 2.6 to before 6.2.16; 7.0.0 to before 7.2.6; 7.3.0 to before 7.4.1 Fixed in 6.2.16, 7.2.6, 7.4.1 Patch available CNA

CPE configurations NVD · 4

CPEVersionsRoleVendor
cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*2.8.18 to before 6.2.16; 7.2.0 to before 7.2.6VulnerableRedis
cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*7.4.0VulnerableRedis
cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*7.4.0 rc1VulnerableRedis
cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*7.4.0 rc2VulnerableRedis
  • cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* Versions 2.8.18 to before 6.2.16; 7.2.0 to before 7.2.6 Vulnerable ·Redis
  • cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:* Versions 7.4.0 Vulnerable ·Redis
  • cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:* Versions 7.4.0 rc1 Vulnerable ·Redis
  • cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:* Versions 7.4.0 rc2 Vulnerable ·Redis

Remediation

  • Fix · CNA redis (redis) Fixed in 6.2.16, 7.2.6, 7.4.1

Red Hat 4 advisories

  • RHSA-2025:1249 Released 2025-02-10 · Red Hat rating Important
    updated discovery container images
    • Discovery 1 for RHEL 9 discovery/discovery-server-rhel9, discovery/discovery-ui-rhel9
  • RHSA-2025:0693 Released 2025-01-27 · Red Hat rating Important
    redis security update
    • Red Hat Enterprise Linux AppStream (v. 9) redis-6.2.17-1.el9_5, redis-devel-6.2.17-1.el9_5, redis-doc-6.2.17-1.el9_5
  • RHSA-2025:0595 Released 2025-01-22 · Red Hat rating Important
    redis:6 security update
    • Red Hat Enterprise Linux AppStream (v. 8) redis-6.2.17-1.module+el8.10.0+22680+748527fd.aarch64::redis:6, redis-6.2.17-1.module+el8.10.0+22680+748527fd.ppc64le::redis:6, redis-6.2.17-1.module+el8.10.0+22680+748527fd.s390x::redis:6 +7
Show 1 more Red Hat advisories
  • RHSA-2024:10869 Released 2024-12-05 · Red Hat rating Moderate
    redis:7 security update
    • Red Hat Enterprise Linux AppStream (v. 9) redis-7.2.6-1.module+el9.5.0+22422+63e067d8.aarch64::redis:7, redis-7.2.6-1.module+el9.5.0+22422+63e067d8.ppc64le::redis:7, redis-7.2.6-1.module+el9.5.0+22422+63e067d8.s390x::redis:7 +7

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat 3scale API Management Platform 2AffectedNo fix planned: Will not fix
Red Hat Quay 3AffectedNo fix yet
Discovery 1 for RHEL 9Fixed RHSA-2025:1249
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2025:0595
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2024:10869, RHSA-2025:0693
Not affected: 2 products
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 9

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-31449
  2. 2026-11-03 CISA SSVC decision points changed

References

  • TI-2022-00463 Missing authorization in Debian redis KEVCVSS 3.1CRITICAL 10.0
  • TI-2025-31759 Redis Lua Use-After-Free may lead to remote code execution CVSS 3.1CRITICAL 10.0
  • TI-2023-18618 Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis CVSS 3.1HIGH 8.8
  • TI-2022-08647 Heap overflow issue with the Lua cjson library used by Redis CVSS 3.1HIGH 8.8
  • TI-2022-08549 Lua scripts can be manipulated to overcome ACL rules in Redis CVSS 3.1HIGH 7.8
  • TI-2023-08708 Integer overflow in multiple Redis commands can lead to denial-of-service CVSS 3.1MEDIUM 5.5
See all 45 →

Sources