Buffer overflow in Redis

CVE-2024-31449

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.

Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.045, 91.6th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Redis — versions 7.4.0, >= 7.3.0, < 7.4.1, >= 7.0.0, < 7.2.6

Weakness classification (CWE)

Public exploits and proof-of-concept code

3 public repositories with exploit or proof-of-concept code for this CVE:

  • qwqqaqqwq00/opensource_defect_repare_cc (last pushed 2026-07-03): Redis 7.0.0 核心模块重构与漏洞修复交付(重构 sds/adlist/intset/listpack,相似度≤20%;修复 CVE-2023-25155/28856、CVE-2024-31449、CVE-2022-36021、CVE-2022-31144 等漏洞)
  • qwqqaqqwq00/opensource_defect_repair_cc (last pushed 2026-07-03): Redis 7.0.0 核心模块重构与漏洞修复交付(重构 sds/adlist/intset/listpack,相似度≤20%;修复 CVE-2023-25155/28856、CVE-2024-31449、CVE-2022-36021、CVE-2022-31144 等漏洞)
  • daeseong1209/CVE-2024-31449 (last pushed 2025-04-27)

Also mentioned in 4 other repositories (Abhinandan-Khurana/rediergeon, plzheheplztrying/cve_monitor, Threekiii/CVE, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References