7.0High

CVE-2024-31449Lua library commands may lead to stack overflow and RCE in Redis

redis redis Published: (2 years ago)

Description

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.

Weakness (CWE): CWE-20CWE-121

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
redis redis >= 2.6, < 6.2.16, >= 7.0.0, < 7.2.6, >= 7.3.0, < 7.4.1

References and patches

CPE matches (NVD) (5)

  • cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* ≥ 2.8.18 < 6.2.16
  • cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* ≥ 7.2.0 < 7.2.6
  • cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*
  • cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*